mirror of
https://github.com/preservim/nerdtree.git
synced 2025-02-18 22:22: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
|
"get an array of all the files in the nodes dir
|
||||||
let dir = self.path
|
let dir = self.path
|
||||||
let globDir = dir.str({'format': 'Glob'})
|
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")
|
let files = split(filesStr, "\n")
|
||||||
|
|
||||||
if !a:silent && len(files) > g:NERDTreeNotificationThreshold
|
if !a:silent && len(files) > g:NERDTreeNotificationThreshold
|
||||||
|
|
Loading…
Reference in New Issue
Block a user