mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-26 10:14:20 +08:00
Merge pull request #200 from hpesoj/master
NERD tree doesn't currently work on Vim 7.2 and below.
This commit is contained in:
commit
22de74a45b
|
@ -1618,7 +1618,13 @@ 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, '*',1) . "\n" . globpath(globDir, '.*',1)
|
||||
|
||||
if version >= 703
|
||||
let filesStr = globpath(globDir, '*', 1) . "\n" . globpath(globDir, '.*', 1)
|
||||
else
|
||||
let filesStr = globpath(globDir, '*') . "\n" . globpath(globDir, '.*')
|
||||
endif
|
||||
|
||||
let files = split(filesStr, "\n")
|
||||
|
||||
if !a:silent && len(files) > g:NERDTreeNotificationThreshold
|
||||
|
|
Loading…
Reference in New Issue
Block a user