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 <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2025-11-20 19:52:18 +00:00
committed by Christian Brabandt
parent 55c65c3e40
commit eb33c2eb28
3 changed files with 23 additions and 2 deletions

View File

@ -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|

View 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

View File

@ -729,6 +729,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1920,
/**/
1919,
/**/