]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1891: g<End> does not move to last non-blank in visual mode v9.1.1891
authorvarsidry <240319857+varsidry@users.noreply.github.com>
Fri, 31 Oct 2025 16:16:11 +0000 (16:16 +0000)
committerChristian Brabandt <cb@256bit.org>
Fri, 31 Oct 2025 16:16:11 +0000 (16:16 +0000)
commitadc85151f3c6a6cea4bb8c8da3465429fc120445
tree44512babd68d056096782e4241ea7124699ae81e
parent958393b0b48dd4a88f8e88d789d5dd5b571709ef
patch 9.1.1891: g<End> does not move to last non-blank in visual mode

Problem:  In visual mode, g<End> does not move to the last non-blank
          character when the end of a line is on the same line as the
          cursor (after v9.0.1753)
Solution: Move the cursor back by one position if it lands after the
          line (varsidry)

fixes: #18657
closes: #18658

Signed-off-by: varsidry <240319857+varsidry@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/index.txt
src/normal.c
src/testdir/test_normal.vim
src/version.c