mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 01:09:56 +08:00
fix(defx): fix s:win_count()
function
This commit is contained in:
parent
3e9b813034
commit
465d9ffc37
@ -69,8 +69,6 @@ augroup END
|
|||||||
function! s:win_count() abort
|
function! s:win_count() abort
|
||||||
if has('nvim') && exists('*nvim_win_get_config')
|
if has('nvim') && exists('*nvim_win_get_config')
|
||||||
return len(filter(range(1, winnr('$')), '!has_key(nvim_win_get_config(win_getid(v:val)), "col")'))
|
return len(filter(range(1, winnr('$')), '!has_key(nvim_win_get_config(win_getid(v:val)), "col")'))
|
||||||
elseif exists('*popup_getoptions')
|
|
||||||
return len(filter(range(1, winnr('$')), '!has_key(popup_getoptions(win_getid(v:val)), "col")'))
|
|
||||||
else
|
else
|
||||||
return winnr('$')
|
return winnr('$')
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user