]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0021: i_CTRL-R- doesn't work for multibyte chars in Replace mode v9.1.0021
authorzeertzjq <zeertzjq@outlook.com>
Fri, 12 Jan 2024 16:43:05 +0000 (17:43 +0100)
committerChristian Brabandt <cb@256bit.org>
Fri, 12 Jan 2024 16:43:05 +0000 (17:43 +0100)
commit424ec1f235a53131042aed94d30f6e2528e551d9
treeacb863e4fea054f85e288966d89fc2952a7fdbdc
parent4f32c83a775a195ae7e1545b2840fb773f93414f
patch 9.1.0021: i_CTRL-R- doesn't work for multibyte chars in Replace mode

Problem:  i_CTRL-R- doesn't work for multibyte chars in Replace mode,
          Coverity complains missing return value for u_save_cursor()
Solution: Use mb_charlen() and del_chars() instead, handle failure mode
          for u_save_cursor() correctly (@zeertzjq)

closes: #13846

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