0
0
mirror of https://github.com/vim/vim.git synced 2025-10-05 05:34:07 -04:00

patch 8.2.3950: going beyond the end of the line with /\%V

Problem:    Going beyond the end of the line with /\%V.
Solution:   Check for valid column in getvcol().
This commit is contained in:
Bram Moolenaar
2021-12-30 15:29:18 +00:00
parent 4c13e5e676
commit 94f3192b03
3 changed files with 19 additions and 4 deletions

View File

@@ -1053,4 +1053,12 @@ func Test_using_visual_position()
bwipe!
endfunc
func Test_using_invalid_visual_position()
" this was going beyond the end of the line
new
exe "norm 0o000\<Esc>0\<C-V>$s0"
/\%V
bwipe!
endfunc
" vim: shiftwidth=2 sts=2 expandtab