nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 2e43ad074bb3b7fafc77b9eea5098047d6fe6e90
parent 7ed79c00c1e225003ab95803fe8a64de753dd8aa
Author: Jason Franklin <lifecrisis@users.noreply.github.com>
Date:   Fri, 30 Jun 2017 10:21:21 -0400

Merge pull request #719 from lifecrisis/issue718

This pull request fixes the bug reported in issue #718.
Diffstat:
Mlib/nerdtree/tree_dir_node.vim | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/lib/nerdtree/tree_dir_node.vim b/lib/nerdtree/tree_dir_node.vim
@@ -242,11 +242,13 @@ function! s:TreeDirNode._glob(pattern, all)
 
     let l:globList = []
 
-    " See ":h version7.txt" for the details of the progression of the "glob()"
-    " and "globpath()" functions.
-    if v:version >= 704
+    " See ":h version7.txt" and ":h version8.txt" for details on the
+    " development of the "glob()" and "globpath()" functions.
+    if v:version > 704 || (v:version == 704 && has('patch654'))
+        let l:globList = globpath(l:pathSpec, a:pattern, !g:NERDTreeRespectWildIgnore, 1, 0)
+    elseif v:version == 704 && has('patch279')
         let l:globList = globpath(l:pathSpec, a:pattern, !g:NERDTreeRespectWildIgnore, 1)
-    elseif v:version >= 703
+    elseif v:version > 702 || (v:version == 702 && has('patch051'))
         let l:globString = globpath(l:pathSpec, a:pattern, !g:NERDTreeRespectWildIgnore)
         let l:globList = split(l:globString, "\n")
     else