]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0796: Visual block reselection wrong with 'virtualedit' v9.2.0796
authorzeertzjq <zeertzjq@outlook.com>
Sat, 18 Jul 2026 14:14:12 +0000 (14:14 +0000)
committerChristian Brabandt <cb@256bit.org>
Sat, 18 Jul 2026 14:14:12 +0000 (14:14 +0000)
commit8cddbfe468299fc7fe8bf669f43ca3a4a40b40b2
tree8d9bd5f9002f751fa8a24d0dd31d443b45ed34a6
parent6b9af206227eac03bfaf7b3b19774a14c145efa2
patch 9.2.0796: Visual block reselection wrong with 'virtualedit'

Problem:  Visual block reselection wrong with 'virtualedit' when line
          lengths are different (Alex Yang, after 8.2.3494).
Solution: Set the entire cursor position to old position when computing
          target curswant, since the check_cursor() added in 8.2.3494
          may change cursor column as well (zeertzjq).

fixes:  #20746
closes: #20748

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/normal.c
src/testdir/test_visual.vim
src/version.c