From 15282dde17656f03a88175a0e028e28a71afea8d Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 3 Aug 2010 09:22:27 -0400 Subject: [PATCH] Tighten check of 'tags' for duplicate --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 5c82a86..711a266 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -136,7 +136,7 @@ function! s:Detect(path) if expand('%:p') =~# '//' call buffer.setvar('&path',s:sub(buffer.getvar('&path'),'^\.%(,|$)','')) endif - if b:git_dir !~# ',' && stridx(buffer.getvar('&tags'),b:git_dir) == -1 + if b:git_dir !~# ',' && stridx(buffer.getvar('&tags'),b:git_dir.'/tags') == -1 call buffer.setvar('&tags',buffer.getvar('&tags').','.b:git_dir.'/tags') endif endif