]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1920: tests: not enough testing for wildtrigger() pum redrawing v9.1.1920
authorzeertzjq <zeertzjq@outlook.com>
Thu, 20 Nov 2025 19:52:18 +0000 (19:52 +0000)
committerChristian Brabandt <cb@256bit.org>
Thu, 20 Nov 2025 19:52:18 +0000 (19:52 +0000)
Problem:  tests: not enough testing for wildtrigger() pum redrawing.
Solution: Also test redrawing when leaving cmdline mode (zeertzjq).

closes: #18773

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/dumps/Test_wildtrigger_update_screen_4.dump [new file with mode: 0644]
src/testdir/test_cmdline.vim
src/version.c

diff --git a/src/testdir/dumps/Test_wildtrigger_update_screen_4.dump b/src/testdir/dumps/Test_wildtrigger_update_screen_4.dump
new file mode 100644 (file)
index 0000000..270a233
--- /dev/null
@@ -0,0 +1,10 @@
+> +0&#ffffff0@74
+|~+0#4040ff13&| @73
+|~| @73
+|~| @73
+|~| @73
+|~| @73
+|~| @73
+|~| @73
+|~| @73
+| +0#0000000&@56|0|,|0|-|1| @8|A|l@1| 
index 2c77957f9b9b5cd51e942b5ef399573fee6deef9..e8310c55302aca22864cd48fe20bf819178995aa 100644 (file)
@@ -5041,11 +5041,20 @@ func Test_wildtrigger_update_screen()
   call term_sendkeys(buf, "x")
   call VerifyScreenDump(buf, 'Test_wildtrigger_update_screen_2', {})
 
-  " pum window is closed when no completion candidates are available
+  " pum is closed when no completion candidates are available
   call term_sendkeys(buf, "\<F8>")
   call VerifyScreenDump(buf, 'Test_wildtrigger_update_screen_3', {})
 
-  call term_sendkeys(buf, "\<esc>")
+  call term_sendkeys(buf, "\<BS>\<F8>")
+  call VerifyScreenDump(buf, 'Test_wildtrigger_update_screen_1', {})
+
+  call term_sendkeys(buf, "x")
+  call VerifyScreenDump(buf, 'Test_wildtrigger_update_screen_2', {})
+
+  " pum is closed when leaving cmdline mode
+  call term_sendkeys(buf, "\<Esc>")
+  call VerifyScreenDump(buf, 'Test_wildtrigger_update_screen_4', {})
+
   call StopVimInTerminal(buf)
 endfunc
 
index 0607618c9ed895b8cfd2c2212eb4ffc22b06e378..3b319e7a386dc0f9fbc55dfb94f9989594d1bd5c 100644 (file)
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1920,
 /**/
     1919,
 /**/