Skip to content

Commit

Permalink
Fix exception with TS offscreen virttext
Browse files Browse the repository at this point in the history
  • Loading branch information
andymass committed Dec 27, 2021
1 parent 2f9073e commit b21ef29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions autoload/matchup/matchparen.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1116,9 +1116,10 @@ function! s:add_matches(corrlist, ...) " {{{1
if hlexists('MatchupVirtualText')
let l:group = 'MatchupVirtualText'
endif
echo l:corr.lnum l:corr.cnum
call nvim_buf_set_extmark(0, s:ns_id,
\ l:corr.lnum - 1, l:corr.cnum, {
\ 'virt_text': [[g:matchup_matchparen_end_sign . ' '
\ l:corr.lnum - 1, l:corr.cnum - 1, {
\ 'virt_text': [[' ' . g:matchup_matchparen_end_sign . ' '
\ . a:corrlist[0].match, l:group]],
\ 'virt_text_pos': 'overlay'
\})
Expand Down

0 comments on commit b21ef29

Please sign in to comment.