mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 22:20:06 +08:00
Fix vim#window api (#3643)
This commit is contained in:
parent
cf345827b5
commit
959800e5a1
@ -62,7 +62,7 @@ endif
|
||||
if has('nvim')
|
||||
function! s:self.is_float(winnr) abort
|
||||
let id = win_getid(a:winnr)
|
||||
if id > 0
|
||||
if id > 0 && exists('*nvim_win_get_config')
|
||||
return has_key(nvim_win_get_config(id), 'col')
|
||||
else
|
||||
return 0
|
||||
@ -71,7 +71,7 @@ if has('nvim')
|
||||
else
|
||||
function! s:self.is_float(winnr) abort
|
||||
let id = win_getid(a:winnr)
|
||||
if id > 0
|
||||
if id > 0 && exists('*popup_getoptions')
|
||||
try
|
||||
return has_key(popup_getoptions(id), 'col')
|
||||
catch /^Vim\%((\a\+)\)\=:E993/
|
||||
|
Loading…
Reference in New Issue
Block a user