]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0446: getregionpos() inconsistent for partly-selected multibyte char v9.1.0446
authorzeertzjq <zeertzjq@outlook.com>
Sun, 26 May 2024 16:42:18 +0000 (18:42 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 26 May 2024 16:42:18 +0000 (18:42 +0200)
commitef73374dc3e4bf8104ba31d5b22517f8028b467a
tree5dac7555abfbe6ab9708ad3289cfdb999d172ed1
parent86071925ede1030d86e764054e36ef8ab56fc666
patch 9.1.0446: getregionpos() inconsistent for partly-selected multibyte char

Problem:  getregionpos() behaves inconsistently for a partly-selected
          multibyte char.
Solution: Always use column of the first byte for a partly-selected
          multibyte char (zeertzjq).

closes: #14851

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