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

Commit: 
https://github.com/vim/vim/commit/eb33c2eb2815edffab3f4abd4cb8617e37ccca40
Author: zeertzjq <[email protected]>
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 <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

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,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1vMAp3-00D3qx-LL%40256bit.org.

Raspunde prin e-mail lui