From d7cf9a2a9802f580c988f69f129ab7b187debb4c Mon Sep 17 00:00:00 2001 From: Jason Franklin Date: Fri, 11 Aug 2017 10:13:12 -0400 Subject: [PATCH] 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'. --- lib/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 index 4a6d213..62bcf88 100644 --- 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