commit 47c20c4b64e30e2948b327c55f49e140f80d5d79
parent d384382091c3158394948846440e6ff059b0e32e
Author: Martin Grenfell <martin.grenfell@gmail.com>
Date: Thu, 12 Nov 2015 14:29:12 +0000
Merge pull request #378 from Xuyuanp/up/master
fix #363
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/nerdtree/creator.vim b/lib/nerdtree/creator.vim
@@ -48,6 +48,10 @@ function! s:Creator.createPrimary(name)
return
endif
+ if path == {}
+ return
+ endif
+
"if instructed to, then change the vim CWD to the dir the NERDTree is
"inited in
if g:NERDTreeChDirMode != 0
@@ -245,7 +249,7 @@ function! s:Creator._pathForString(str)
let path = g:NERDTreePath.New(dir)
catch /^NERDTree.InvalidArgumentsError/
call nerdtree#echo("No bookmark or directory found for: " . a:str)
- return
+ return {}
endtry
endif
if !path.isDirectory