mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 20:03:48 -05:00
Return early if exception was thrown in pathForString
This commit is contained in:
@@ -42,6 +42,11 @@ endfunction
|
|||||||
"name: the name of a bookmark or a directory
|
"name: the name of a bookmark or a directory
|
||||||
function! s:Creator.createPrimary(name)
|
function! s:Creator.createPrimary(name)
|
||||||
let path = self._pathForString(a: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
|
"if instructed to, then change the vim CWD to the dir the NERDTree is
|
||||||
"inited in
|
"inited in
|
||||||
|
|||||||
Reference in New Issue
Block a user