]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0430: getregionpos() doesn't handle one char selection v9.1.0430
authorzeertzjq <zeertzjq@outlook.com>
Wed, 22 May 2024 14:42:44 +0000 (16:42 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 22 May 2024 14:42:44 +0000 (16:42 +0200)
commit52a6f348874778cf315b47d9e8b5f818f4b97277
tree9445db2ad79338de8626f28b473892cc24ff189d
parent95ff39f8e3d5e16d4ef55f47d8f50da29df05f9e
patch 9.1.0430: getregionpos() doesn't handle one char selection

Problem:  getregionpos() doesn't handle one char selection.
Solution: Handle startspaces differently when is_oneChar is set.
          Also add a test for an exclusive charwise selection with
          multibyte chars (zeertzjq)

closes: #14825

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