]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1156: tests: No test for what patch 9.1.1152 fixes v9.1.1156
authorzeertzjq <zeertzjq@outlook.com>
Thu, 27 Feb 2025 18:22:26 +0000 (19:22 +0100)
committerChristian Brabandt <cb@256bit.org>
Thu, 27 Feb 2025 18:22:26 +0000 (19:22 +0100)
Problem:  No test for what patch 9.1.1152 fixes.
Solution: Add a test (zeertzjq).

closes: #16742

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

index 2524453775cd81cecb7b72cc28690e33527fc7d6..43f80be29982ba22298a3f7cc51264640c79533a 100644 (file)
@@ -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哦洛固四最倒倀\<Esc>0"
+  call feedkeys($'qr{keys}q', 'xt')
+  call assert_equal(keys, @r)
+
+  let morekeys = "A…foobar\<Esc>0"
+  call feedkeys($'qR{morekeys}q', 'xt')
+  call assert_equal(keys .. morekeys, @r)
+
+  bwipe!
+endfunc
+
 func Test_recording_with_super_mod()
   if "\<D-j>"[-1:] == '>'
     throw 'Skipped: <D- modifier not supported'
index 9c3f70b8b566eb635a56b177e8b5b9069cddf329..ef3ca2e38ed97d5d41eff57be1bb3b22bdddf4a8 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1156,
 /**/
     1155,
 /**/