mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 10:50:07 +08:00
Fix unknown function popup_list (#3673)
This commit is contained in:
parent
31768c56ce
commit
a0db70b063
@ -106,10 +106,14 @@ if has('nvim')
|
|||||||
endfunction
|
endfunction
|
||||||
else
|
else
|
||||||
function! s:self.opened() abort
|
function! s:self.opened() abort
|
||||||
"tabpage" will be -1 for a global popup, zero for a popup on
|
"tabpage" will be -1 for a global popup, zero for a popup on
|
||||||
"the current tabpage and a positive number for a popup on
|
"the current tabpage and a positive number for a popup on
|
||||||
"another tabpage.
|
"another tabpage.
|
||||||
return index(popup_list(), self.__winid) != -1
|
if exists('*popup_list')
|
||||||
|
return index(popup_list(), self.__winid) != -1
|
||||||
|
else
|
||||||
|
return index([-1, 0], get(popup_getoptions(self.__winid), 'tabpage', -2)) != -1
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user