mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 11:23:48 -05:00
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:
committed by
Jason Franklin
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()
|
||||
|
||||
Reference in New Issue
Block a user