nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 5cec19365a45728e7b6ee5d6aa0b9a84b0ff1d79
parent b3281cc63e44d97888a398d202f75c92ed0a0a04
Author: Martin Grenfell <martin.grenfell@gmail.com>
Date:   Fri,  1 May 2015 16:05:35 +0100

Merge pull request #411 from xdl/master

Fix for nonexistent dir/bookmarks given to NERDTree commands
Diffstat:
Mlib/nerdtree/creator.vim | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/lib/nerdtree/creator.vim b/lib/nerdtree/creator.vim
@@ -42,6 +42,11 @@ endfunction
 "name: the name of a bookmark or a directory
 function! s:Creator.createPrimary(name)
     let path = self._pathForString(a:name)
+    
+    "abort if exception was thrown (bookmark/dir doesn't exist)
+    if empty(path)
+        return
+    endif
 
     "if instructed to, then change the vim CWD to the dir the NERDTree is
     "inited in