Return early if exception was thrown in pathForString

This commit is contained in:
xiaodili 2014-12-21 17:44:41 +00:00
parent 3b98a7fcae
commit 6dfbcd660a

View File

@ -43,6 +43,11 @@ endfunction
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
if g:NERDTreeChDirMode != 0