Skip to content

Commit 2d24784

Browse files
committed
patch 8.1.1440: win_execute() test fails
Problem: Win_execute() test fails. Solution: Adjust the expected error number. Move to popup test.
1 parent c47ed44 commit 2d24784

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/testdir/test_execute_func.vim

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ func Test_win_execute()
9494
let line = win_execute(popupwin, 'echo getline(1)')
9595
call assert_match('the popup win', line)
9696

97-
call assert_fails('call win_execute(popupwin, "bwipe!")', 'E937:')
98-
9997
call popup_close(popupwin)
10098
endif
10199

src/testdir/test_popupwin.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ func Test_win_execute_not_allowed()
118118
call assert_fails('call win_execute(winid, "vsplit")', 'E994:')
119119
call assert_fails('call win_execute(winid, "close")', 'E994:')
120120
call assert_fails('call win_execute(winid, "bdelete")', 'E994:')
121+
call assert_fails('call win_execute(winid, "bwipe!")', 'E994:')
121122
call assert_fails('call win_execute(winid, "tabnew")', 'E994:')
122123
call assert_fails('call win_execute(winid, "tabnext")', 'E994:')
123124
call assert_fails('call win_execute(winid, "next")', 'E994:')

src/version.c

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

768768
static int included_patches[] =
769769
{ /* Add new patch number below this line */
770+
/**/
771+
1440,
770772
/**/
771773
1439,
772774
/**/

0 commit comments

Comments
 (0)