nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit fe249e20b98446d2c96f6e5424a6f62fc79d8b37
parent e819e13a5ddd249c3313dfe549d99f1dc279c48c
Author: Martin Grenfell <martin_grenfell@msn.com>
Date:   Sun, 20 Jul 2008 01:06:00 +1200

tell the user how many files couldnt be loaded

Diffstat:
Mplugin/NERD_tree.vim | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -848,7 +848,7 @@ function! s:oTreeDirNode.InitChildren(silent) dict
                 let path = s:oPath.New(i)
                 call self.CreateChild(path, 0)
             catch /^NERDTree.Path.\(InvalidArguments\|InvalidFiletype\)/
-                let invalidFilesFound = 1
+                let invalidFilesFound += 1
             endtry
         endif
     endfor
@@ -860,7 +860,7 @@ function! s:oTreeDirNode.InitChildren(silent) dict
     endif
 
     if invalidFilesFound
-        call s:EchoWarning("some files could not be loaded into the NERD tree")
+        call s:EchoWarning(invalidFilesFound . " file(s) could not be loaded into the NERD tree")
     endif
     return self.GetChildCount()
 endfunction