Workaround further partial match bug

This commit is contained in:
Andy K. Massimino
2018-05-24 19:14:29 -04:00
parent 92c8e27052
commit 9b13392c73

View File

@@ -292,8 +292,10 @@ function! s:matchparen.highlight(...) abort dict " {{{1
return s:matchparen.highlight(0, l:entering_insert)
endif
if len(l:corrlist) <= (l:current.side ==# 'mid' ? 2 : 1)
if !has_key(l:current, 'match_index')
\ || len(l:corrlist) <= (l:current.side ==# 'mid' ? 2 : 1)
\ && !g:matchup_matchparen_singleton
" TODO this doesn't catch every case, needs refactor
" TODO singleton doesn't work right for mids
return
endif