diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 88730bf..ad1669f 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -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