mirror of
https://github.com/chenasraf/vim-matchup.git
synced 2026-05-18 01:38:57 +00:00
Fix #88 that visual block $ sometimes doesn't work
This commit is contained in:
@@ -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
2
test/issues/88/ex.cs
Normal file
@@ -0,0 +1,2 @@
|
||||
this is some longer text
|
||||
short {0}
|
||||
Reference in New Issue
Block a user