Escape commas in the globpath() function's path argument.
If not escaped, commas will cause globpath() to search in multiple directories, none of which really exist.
This commit is contained in:
parent
b8cc044760
commit
808f5b225b
@ -247,7 +247,7 @@ function! s:TreeDirNode._glob(pattern, all)
|
||||
if self.path.str() == getcwd()
|
||||
let l:pathSpec = ','
|
||||
else
|
||||
let l:pathSpec = fnamemodify(self.path.str({'format': 'Glob'}), ':.')
|
||||
let l:pathSpec = escape(fnamemodify(self.path.str({'format': 'Glob'}), ':.'), ',')
|
||||
|
||||
" On Windows, the drive letter may be removed by "fnamemodify()".
|
||||
if nerdtree#runningWindows() && l:pathSpec[0] == g:NERDTreePath.Slash()
|
||||
|
Loading…
Reference in New Issue
Block a user