mirror of
https://github.com/chenasraf/vim-matchup.git
synced 2026-05-18 01:38:57 +00:00
Try to prevent error when using terminal popup, re #87
This commit is contained in:
@@ -138,7 +138,8 @@ function! s:matchparen.clear() abort dict " {{{1
|
||||
unlet! w:matchup_match_id_list
|
||||
endif
|
||||
|
||||
if exists('t:match_popup')
|
||||
if exists('t:match_popup') && (exists('*win_gettype')
|
||||
\ ? win_gettype() !=# 'popup' : &buftype !=# 'terminal')
|
||||
call popup_hide(t:match_popup)
|
||||
elseif has('nvim')
|
||||
call s:close_floating_win()
|
||||
|
||||
Reference in New Issue
Block a user