From: zeertzjq Date: Thu, 27 Feb 2025 18:22:26 +0000 (+0100) Subject: patch 9.1.1156: tests: No test for what patch 9.1.1152 fixes X-Git-Tag: v9.1.1156^0 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4be1ab80befd78a80a05c2e66aeff58113832f46;p=thirdparty%2Fvim.git patch 9.1.1156: tests: No test for what patch 9.1.1152 fixes Problem: No test for what patch 9.1.1152 fixes. Solution: Add a test (zeertzjq). closes: #16742 Signed-off-by: zeertzjq Signed-off-by: Christian Brabandt --- diff --git a/src/testdir/test_registers.vim b/src/testdir/test_registers.vim index 2524453775..43f80be299 100644 --- a/src/testdir/test_registers.vim +++ b/src/testdir/test_registers.vim @@ -264,6 +264,20 @@ func Test_zz_recording_with_select_mode_utf8_gui() call Run_test_recording_with_select_mode_utf8() endfunc +func Test_recording_append_utf8() + new + + let keys = "cc哦洛固四最倒倀\0" + call feedkeys($'qr{keys}q', 'xt') + call assert_equal(keys, @r) + + let morekeys = "A…foobar\0" + call feedkeys($'qR{morekeys}q', 'xt') + call assert_equal(keys .. morekeys, @r) + + bwipe! +endfunc + func Test_recording_with_super_mod() if "\"[-1:] == '>' throw 'Skipped: