]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0388: cursor() and getregion() don't handle v:maxcol well v9.1.0388
authorzeertzjq <zeertzjq@outlook.com>
Thu, 2 May 2024 11:06:24 +0000 (13:06 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 2 May 2024 11:06:24 +0000 (13:06 +0200)
commit2ffdae79487cb7e323383eda9ae96c2e9d1625bd
tree8fba2ff650ac2c75106755228622e39ac1cf044e
parentda9d345b3dd8fe67c0c7341e426b09bec8c40abd
patch 9.1.0388: cursor() and getregion() don't handle v:maxcol well

Problem:  cursor() and getregion() don't handle v:maxcol well.
Solution: Add special handling for v:maxcol like setpos() does.
          (zeertzjq)

closes: #14698

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