mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 22:50:06 +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
|
||||
else
|
||||
function! s:self.opened() abort
|
||||
"tabpage" will be -1 for a global popup, zero for a popup on
|
||||
"the current tabpage and a positive number for a popup on
|
||||
"another tabpage.
|
||||
return index(popup_list(), self.__winid) != -1
|
||||
"tabpage" will be -1 for a global popup, zero for a popup on
|
||||
"the current tabpage and a positive number for a popup on
|
||||
"another tabpage.
|
||||
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
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user