nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit a283c0e03ef3f5822e451a5a7b079cec00d372e3
parent 4f1e6ecb057fc0bac189171c1430d71ef25f6bb1
Author: Xuyuan Pang <xuyuanp@gmail.com>
Date:   Mon,  1 Sep 2014 16:25:27 +0800

fix #363

Diffstat:
Mlib/nerdtree/creator.vim | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/lib/nerdtree/creator.vim b/lib/nerdtree/creator.vim
@@ -43,6 +43,10 @@ endfunction
 function! s:Creator.createPrimary(name)
     let path = self._pathForString(a:name)
 
+    if path == 0
+        return
+    endif
+
     "if instructed to, then change the vim CWD to the dir the NERDTree is
     "inited in
     if g:NERDTreeChDirMode != 0