From 7991e832a3a603b959734923c8328f27883f7044 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 11 Aug 2011 11:03:18 -0400 Subject: [PATCH] Prioritize our own tags --- plugin/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 74716c2..8b4980c 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -148,10 +148,10 @@ function! s:Detect(path) call buffer.setvar('&path',s:sub(buffer.getvar('&path'),'^\.%(,|$)','')) endif if b:git_dir !~# ',' && stridx(buffer.getvar('&tags'),b:git_dir.'/tags') == -1 + call buffer.setvar('&tags',b:git_dir.'/tags'.','.buffer.getvar('&tags')) if &filetype != '' - call buffer.setvar('&tags',buffer.getvar('&tags').','.b:git_dir.'/'.&filetype.'.tags') + call buffer.setvar('&tags',b:git_dir.'/'.&filetype.'.tags'.','.buffer.getvar('&tags')) endif - call buffer.setvar('&tags',buffer.getvar('&tags').','.b:git_dir.'/tags') endif endif endfunction