mirror of
https://github.com/preservim/nerdtree.git
synced 2024-12-02 15:23:54 +08:00
Merge branch 'master' into up/master
Conflicts: lib/nerdtree/creator.vim
This commit is contained in:
commit
5d19452284
|
@ -43,7 +43,7 @@ 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 == 0
|
if path == {}
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -244,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