nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit d7cf9a2a9802f580c988f69f129ab7b187debb4c
parent a32a55e8d98413459aa309176501b97b3f8a350e
Author: Jason Franklin <j_fra@fastmail.us>
Date:   Fri, 11 Aug 2017 10:13:12 -0400

Fix the drive check in "TreeDirNode._glob()"

This check did not use the proper abstract method to check for a
path separator. It now does.

This fixes a problem with the 'u' macro that I noticed while working
on the fix for using the NERDTree with 'shellslash'.

Diffstat:
Mlib/nerdtree/tree_dir_node.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/nerdtree/tree_dir_node.vim b/lib/nerdtree/tree_dir_node.vim
@@ -243,7 +243,7 @@ function! s:TreeDirNode._glob(pattern, all)
         let l:pathSpec = fnamemodify(self.path.str({'format': 'Glob'}), ':.')
 
         " On Windows, the drive letter may be removed by "fnamemodify()".
-        if nerdtree#runningWindows() && l:pathSpec[0] == '\'
+        if nerdtree#runningWindows() && l:pathSpec[0] == g:NERDTreePath.Slash()
             let l:pathSpec = self.path.drive . l:pathSpec
         endif
     endif