Merge pull request #378 from Xuyuanp/up/master

fix #363
This commit is contained in:
Martin Grenfell 2015-11-12 14:29:12 +00:00
commit 47c20c4b64

View File

@ -48,6 +48,10 @@ function! s:Creator.createPrimary(name)
return return
endif endif
if path == {}
return
endif
"if instructed to, then change the vim CWD to the dir the NERDTree is "if instructed to, then change the vim CWD to the dir the NERDTree is
"inited in "inited in
if g:NERDTreeChDirMode != 0 if g:NERDTreeChDirMode != 0
@ -245,7 +249,7 @@ function! s:Creator._pathForString(str)
let path = g:NERDTreePath.New(dir) let path = g:NERDTreePath.New(dir)
catch /^NERDTree.InvalidArgumentsError/ catch /^NERDTree.InvalidArgumentsError/
call nerdtree#echo("No bookmark or directory found for: " . a:str) call nerdtree#echo("No bookmark or directory found for: " . a:str)
return return {}
endtry endtry
endif endif
if !path.isDirectory if !path.isDirectory