]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0132: "C" doesn't include composing chars with 'virtualedit' v9.1.0132
authorzeertzjq <zeertzjq@outlook.com>
Sat, 24 Feb 2024 13:21:39 +0000 (14:21 +0100)
committerChristian Brabandt <cb@256bit.org>
Sat, 24 Feb 2024 13:21:39 +0000 (14:21 +0100)
commit048761bcd40ec630fd3e039f0066cf4e484ceabd
treeff2ef331cffbf627627cfd47afb6b2746c7ed232
parent0dc0bff000fd804c6b0778ccc4554a4e4c82c8c9
patch 9.1.0132: "C" doesn't include composing chars with 'virtualedit'

Problem:  using "C" and 've=all' set, doesn't include composing chars
          when changing a line, keeps the composing chars for whatever
          is typed afterwards.
Solution: Use mb_head_off() and mb_ptr2len() instead of mb_tail_off().
          (zeertzjq)

closes: #14083

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