File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -566,6 +566,7 @@ function! s:TreeDirNode.refresh()
566
566
let files = self ._glob (' *' , 1 ) + self ._glob (' .*' , 0 )
567
567
let newChildNodes = []
568
568
let invalidFilesFound = 0
569
+ let invalidFiles = []
569
570
for i in files
570
571
try
571
572
" create a new path and see if it exists in this nodes children
@@ -582,7 +583,8 @@ function! s:TreeDirNode.refresh()
582
583
call add (newChildNodes, newNode)
583
584
endif
584
585
catch /^NERDTree.\(InvalidArguments\|InvalidFiletype\)Error/
585
- let invalidFilesFound = 1
586
+ let invalidFilesFound += 1
587
+ let invalidFiles += [i ]
586
588
endtry
587
589
endfor
588
590
@@ -591,7 +593,7 @@ function! s:TreeDirNode.refresh()
591
593
call self .sortChildren ()
592
594
593
595
if invalidFilesFound
594
- call nerdtree#echoWarning (' some files could not be loaded into the NERD tree ' )
596
+ call nerdtree#echoWarning (invalidFilesFound . ' Invalid file(s): ' . join (invalidFiles, ' , ' ) )
595
597
endif
596
598
endif
597
599
endfunction
You can’t perform that action at this time.
0 commit comments