Commit: patch 9.1.1920: tests: not enough testing for wildtrigger() pum redrawing

0 views
Skip to first unread message

Christian Brabandt

unread,
Nov 20, 2025, 3:00:31 PM (2 days ago) Nov 20
to vim...@googlegroups.com
patch 9.1.1920: tests: not enough testing for wildtrigger() pum redrawing

Commit: https://github.com/vim/vim/commit/eb33c2eb2815edffab3f4abd4cb8617e37ccca40
Author: zeertzjq <zeer...@outlook.com>
Date: Thu Nov 20 19:52:18 2025 +0000

patch 9.1.1920: tests: not enough testing for wildtrigger() pum redrawing

Problem: tests: not enough testing for wildtrigger() pum redrawing.
Solution: Also test redrawing when leaving cmdline mode (zeertzjq).

closes: #18773

Signed-off-by: zeertzjq <zeer...@outlook.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

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
index 000000000..270a23344
--- /dev/null
+++ b/src/testdir/dumps/Test_wildtrigger_update_screen_4.dump
@@ -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|
diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim
index 2c77957f9..e8310c553 100644
--- a/src/testdir/test_cmdline.vim
+++ b/src/testdir/test_cmdline.vim
@@ -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

diff --git a/src/version.c b/src/version.c
index 0607618c9..3b319e7a3 100644
--- a/src/version.c
+++ b/src/version.c
@@ -729,6 +729,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1920,
/**/
1919,
/**/
Reply all
Reply to author
Forward
0 new messages