fix #363
This commit is contained in:
parent
4f1e6ecb05
commit
8e06723c04
@ -43,6 +43,10 @@ endfunction
|
|||||||
function! s:Creator.createPrimary(name)
|
function! s:Creator.createPrimary(name)
|
||||||
let path = self._pathForString(a:name)
|
let path = self._pathForString(a:name)
|
||||||
|
|
||||||
|
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
|
||||||
@ -240,7 +244,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
|
||||||
|
Loading…
Reference in New Issue
Block a user