# HG changeset patch # User Greg Hensley # Date 1438281747 14400 # Node ID 51c1a57811b39f3d00b4694e1b448ee65fb62ce5 # Parent 208130c6245e9000a505c3d030a0630e574ffe07 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). diff -r 208130c6245e -r 51c1a57811b3 autoload/gutentags.vim --- 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)