Mercurial > vim-gutentags
changeset 80:51c1a57811b3
Use full list of root markers in get_project_root.
Use l:markers instead of g:gutentags_project_root as the source of
project root indicators when testing parent directories.
In get_project_root, the list l:markers is built up with the contents of
g:gutentags_project_root and g:ctrlp_root_markers (if it exists).
However, g:gutentags_project_root was used directly while testing for
the presence of project root indicators (l:markers was ignored).
author | Greg Hensley <greg.hensley@gmail.com> |
---|---|
date | Thu, 30 Jul 2015 14:42:27 -0400 |
parents | 208130c6245e |
children | d9bf24ba7f35 |
files | autoload/gutentags.vim |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/autoload/gutentags.vim Tue Jul 28 21:30:12 2015 -0700 +++ b/autoload/gutentags.vim Thu Jul 30 14:42:27 2015 -0400 @@ -67,7 +67,7 @@ let l:markers += g:ctrlp_root_markers endif while l:path != l:previous_path - for root in g:gutentags_project_root + for root in l:markers if getftype(l:path . '/' . root) != "" let l:proj_dir = simplify(fnamemodify(l:path, ':p')) return gutentags#stripslash(l:proj_dir)