Mercurial > vim-gutentags
comparison autoload/gutentags.vim @ 81:d9bf24ba7f35
Merge pull-request #39 from GitHub.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 08 Aug 2015 22:46:39 -0700 |
parents | 51c1a57811b3 |
children | a837021a2388 |
comparison
equal
deleted
inserted
replaced
79:f08ae081b061 | 81:d9bf24ba7f35 |
---|---|
65 let l:markers = g:gutentags_project_root[:] | 65 let l:markers = g:gutentags_project_root[:] |
66 if exists('g:ctrlp_root_markers') | 66 if exists('g:ctrlp_root_markers') |
67 let l:markers += g:ctrlp_root_markers | 67 let l:markers += g:ctrlp_root_markers |
68 endif | 68 endif |
69 while l:path != l:previous_path | 69 while l:path != l:previous_path |
70 for root in g:gutentags_project_root | 70 for root in l:markers |
71 if getftype(l:path . '/' . root) != "" | 71 if getftype(l:path . '/' . root) != "" |
72 let l:proj_dir = simplify(fnamemodify(l:path, ':p')) | 72 let l:proj_dir = simplify(fnamemodify(l:path, ':p')) |
73 return gutentags#stripslash(l:proj_dir) | 73 return gutentags#stripslash(l:proj_dir) |
74 endif | 74 endif |
75 endfor | 75 endfor |