Mercurial > vim-gutentags
comparison autoload/gutentags.vim @ 174:721cba3cd20d
Don't apply `wildignore` when looking for markers
When folks have `.git` in their `wildignore`, the `globpath` function
will never find a project marker.
author | Rafael Bodill <justrafi@gmail.com> |
---|---|
date | Wed, 22 Feb 2017 00:42:49 +0200 |
parents | 2cf3fb66285b |
children | 8bac4b955c84 |
comparison
equal
deleted
inserted
replaced
173:2cf3fb66285b | 174:721cba3cd20d |
---|---|
153 endif | 153 endif |
154 endfor | 154 endfor |
155 endif | 155 endif |
156 while l:path != l:previous_path | 156 while l:path != l:previous_path |
157 for root in l:markers | 157 for root in l:markers |
158 if !empty(globpath(l:path, root)) | 158 if !empty(globpath(l:path, root, 1)) |
159 let l:proj_dir = simplify(fnamemodify(l:path, ':p')) | 159 let l:proj_dir = simplify(fnamemodify(l:path, ':p')) |
160 let l:proj_dir = gutentags#stripslash(l:proj_dir) | 160 let l:proj_dir = gutentags#stripslash(l:proj_dir) |
161 if l:proj_dir == '' | 161 if l:proj_dir == '' |
162 call gutentags#trace("Found project marker '" . root . | 162 call gutentags#trace("Found project marker '" . root . |
163 \"' at the root of your file-system! " . | 163 \"' at the root of your file-system! " . |