Fix #88 that visual block $ sometimes doesn't work

This commit is contained in:
Andy K. Massimino
2020-02-29 11:06:40 -05:00
parent f5a677065c
commit acf3fca1a0
2 changed files with 7 additions and 0 deletions

View File

@@ -374,6 +374,11 @@ function! s:matchparen.highlight(...) abort dict " {{{1
return
endif
" prevent problems in visual block mode at the end of a line
if get(matchup#pos#get_cursor(), 4, 0) == 2147483647
return
endif
" don't get matches when inside a closed fold
if foldclosed(line('.')) > -1
return

2
test/issues/88/ex.cs Normal file
View File

@@ -0,0 +1,2 @@
this is some longer text
short {0}