mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 23:00:04 +08:00
Fix defx_root_check (#2741)
This commit is contained in:
parent
8153e523c2
commit
91f25ce169
@ -167,6 +167,11 @@ function! DefxSmartL(_)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! DefxSmartH(_)
|
function! DefxSmartH(_)
|
||||||
|
" if cursor line is first line, or in empty dir
|
||||||
|
if line('.') ==# 1 || line('$') ==# 1
|
||||||
|
return defx#call_action('cd', ['..'])
|
||||||
|
endif
|
||||||
|
|
||||||
" candidate is opend tree?
|
" candidate is opend tree?
|
||||||
if defx#is_opened_tree()
|
if defx#is_opened_tree()
|
||||||
return defx#call_action('close_tree')
|
return defx#call_action('close_tree')
|
||||||
|
Loading…
Reference in New Issue
Block a user