1
0
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:
Wang Shidong 2020-07-31 20:39:21 +08:00 committed by GitHub
parent 31768c56ce
commit a0db70b063
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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