Try to prevent error when using terminal popup, re #87

This commit is contained in:
Andy K. Massimino
2020-02-27 21:26:29 -05:00
parent 6fedba77ed
commit f5a677065c

View File

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