mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-26 18:30:45 +08:00
Merge pull request #172 from stephenprater/master
Files matching wildignore patterns are not shown in NERDTree
This commit is contained in:
commit
dbeb1947ea
|
@ -1617,7 +1617,7 @@ function! s:TreeDirNode._initChildren(silent)
|
|||
"get an array of all the files in the nodes dir
|
||||
let dir = self.path
|
||||
let globDir = dir.str({'format': 'Glob'})
|
||||
let filesStr = globpath(globDir, '*') . "\n" . globpath(globDir, '.*')
|
||||
let filesStr = globpath(globDir, '*',1) . "\n" . globpath(globDir, '.*',1)
|
||||
let files = split(filesStr, "\n")
|
||||
|
||||
if !a:silent && len(files) > g:NERDTreeNotificationThreshold
|
||||
|
|
Loading…
Reference in New Issue
Block a user