Mercurial > vim-gutentags
diff autoload/gutentags.vim @ 123:76a4822aab76
Use existing b:gutentags_root
This could be set from g:gutentags_enabled_user_func then, for example.
author | Daniel Hahler <git@thequod.de> |
---|---|
date | Wed, 06 Apr 2016 18:05:39 +0200 |
parents | 7db339a3961f |
children | e2a43c03da79 |
line wrap: on
line diff
--- a/autoload/gutentags.vim Fri Mar 25 20:41:38 2016 -0700 +++ b/autoload/gutentags.vim Wed Apr 06 18:05:39 2016 +0200 @@ -157,7 +157,9 @@ if g:gutentags_resolve_symlinks let l:buf_dir = fnamemodify(resolve(expand('%:p', 1)), ':p:h') endif - let b:gutentags_root = gutentags#get_project_root(l:buf_dir) + if !exists('b:gutentags_root') + let b:gutentags_root = gutentags#get_project_root(l:buf_dir) + endif if filereadable(b:gutentags_root . '/.notags') call gutentags#trace("'notags' file found... no gutentags support.") return