Skip to content

Commit 17ab28d

Browse files
committed
patch 8.2.2007: test for insert mode in popup is not reliable
Problem: Test for insert mode in popup is not reliable. Solution: Wait for the popup to disappear. (Ozaki Kiichi, closes #7321)
1 parent 88774a3 commit 17ab28d

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/testdir/test_terminal.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1266,7 +1266,7 @@ func Test_terminal_popup_insert_cmd()
12661266
call assert_equal('n', mode())
12671267

12681268
call feedkeys("\<C-D>", 'xt')
1269-
sleep 50m
1269+
call WaitFor({-> popup_list() == []})
12701270
delfunc StartTermInPopup
12711271
iunmap <F3>
12721272
endfunc

src/version.c

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

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2007,
753755
/**/
754756
2006,
755757
/**/

0 commit comments

Comments
 (0)