nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 6dfbcd660a2107466d66fb557c57fc717cd1068a
parent 3b98a7fcae8f9fff356907171f0406ff8cd28921
Author: xiaodili <eddieli188@hotmail.com>
Date:   Sun, 21 Dec 2014 17:44:41 +0000

Return early if exception was thrown in pathForString
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