1
0
forked from aniani/vim

patch 8.2.5037: cursor position may be invalid after "0;" range

Problem:    Cursor position may be invalid after "0;" range.
Solution:   Check the cursor position when it was set by ";" in the range.
This commit is contained in:
Bram Moolenaar
2022-05-28 14:25:35 +01:00
parent 305abc6123
commit 4d97a565ae
3 changed files with 27 additions and 7 deletions

View File

@@ -717,5 +717,13 @@ func Test_address_line_overflow()
bwipe!
endfunc
" This was leaving the cursor in line zero
func Test_using_zero_in_range()
new
norm o00
silent! 0;s/\%')
bwipe!
endfunc
" vim: shiftwidth=2 sts=2 expandtab