changeset 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 3d7f2bf017fd
files autoload/gutentags.vim
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/autoload/gutentags.vim	Tue Feb 21 12:36:45 2017 -0800
+++ b/autoload/gutentags.vim	Wed Feb 22 00:42:49 2017 +0200
@@ -155,7 +155,7 @@
     endif
     while l:path != l:previous_path
         for root in l:markers
-            if !empty(globpath(l:path, root))
+            if !empty(globpath(l:path, root, 1))
                 let l:proj_dir = simplify(fnamemodify(l:path, ':p'))
                 let l:proj_dir = gutentags#stripslash(l:proj_dir)
                 if l:proj_dir == ''