mirror of
https://github.com/vim/vim.git
synced 2025-12-10 18:46:57 -05:00
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:
committed by
Christian Brabandt
parent
55c65c3e40
commit
eb33c2eb28
10
src/testdir/dumps/Test_wildtrigger_update_screen_4.dump
Normal file
10
src/testdir/dumps/Test_wildtrigger_update_screen_4.dump
Normal 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|
|
||||
@ -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
|
||||
|
||||
|
||||
@ -729,6 +729,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1920,
|
||||
/**/
|
||||
1919,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user