Don't override 'tags' without "./tags"

References: https://github.com/tpope/vim-sensible/issues/94
This commit is contained in:
Tim Pope
2022-12-27 07:51:35 -05:00
parent 1415c5b66d
commit d4b12eaf84

View File

@@ -58,7 +58,9 @@ if v:version > 703 || v:version == 703 && has("patch541")
set formatoptions+=j " Delete comment character when joining commented lines set formatoptions+=j " Delete comment character when joining commented lines
endif endif
if has('path_extra') " Replace the check for a tags file in the parent directory of the current
" file with a check in every ancestor directory.
if has('path_extra') && (',' . &g:tags . ',') =~# ',\./tags,'
setglobal tags-=./tags tags-=./tags; tags^=./tags; setglobal tags-=./tags tags-=./tags; tags^=./tags;
endif endif