Skip to content

Commit eb33c2e

Browse files
zeertzjqchrisbra
authored andcommitted
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]>
1 parent 55c65c3 commit eb33c2e

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
> +0&#ffffff0@74
2+
|~+0#4040ff13&| @73
3+
|~| @73
4+
|~| @73
5+
|~| @73
6+
|~| @73
7+
|~| @73
8+
|~| @73
9+
|~| @73
10+
| +0#0000000&@56|0|,|0|-|1| @8|A|l@1|

src/testdir/test_cmdline.vim

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5041,11 +5041,20 @@ func Test_wildtrigger_update_screen()
50415041
call term_sendkeys(buf, "x")
50425042
call VerifyScreenDump(buf, 'Test_wildtrigger_update_screen_2', {})
50435043

5044-
" pum window is closed when no completion candidates are available
5044+
" pum is closed when no completion candidates are available
50455045
call term_sendkeys(buf, "\<F8>")
50465046
call VerifyScreenDump(buf, 'Test_wildtrigger_update_screen_3', {})
50475047

5048-
call term_sendkeys(buf, "\<esc>")
5048+
call term_sendkeys(buf, "\<BS>\<F8>")
5049+
call VerifyScreenDump(buf, 'Test_wildtrigger_update_screen_1', {})
5050+
5051+
call term_sendkeys(buf, "x")
5052+
call VerifyScreenDump(buf, 'Test_wildtrigger_update_screen_2', {})
5053+
5054+
" pum is closed when leaving cmdline mode
5055+
call term_sendkeys(buf, "\<Esc>")
5056+
call VerifyScreenDump(buf, 'Test_wildtrigger_update_screen_4', {})
5057+
50495058
call StopVimInTerminal(buf)
50505059
endfunc
50515060

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,8 @@ static char *(features[]) =
729729

730730
static int included_patches[] =
731731
{ /* Add new patch number below this line */
732+
/**/
733+
1920,
732734
/**/
733735
1919,
734736
/**/

0 commit comments

Comments
 (0)