Skip to content

Commit fef38d8

Browse files
k-takatabrammool
authored andcommitted
patch 9.0.0408: GUI test sometimes fails on MS-Windows
Problem: GUI test sometimes fails on MS-Windows. Solution: Make sure Vim is the foreground window. (Ken Takata, closes #11077)
1 parent 75a115e commit fef38d8

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/gui_w32.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8649,6 +8649,7 @@ test_gui_w32_sendevent(dict_T *args)
86498649
inputs[0].ki.wVk = vkCode;
86508650
if (STRICMP(event, "keyup") == 0)
86518651
inputs[0].ki.dwFlags = KEYEVENTF_KEYUP;
8652+
(void)SetForegroundWindow(s_hwnd);
86528653
SendInput(ARRAYSIZE(inputs), inputs, sizeof(INPUT));
86538654
}
86548655
else

src/version.c

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

704704
static int included_patches[] =
705705
{ /* Add new patch number below this line */
706+
/**/
707+
408,
706708
/**/
707709
407,
708710
/**/

0 commit comments

Comments
 (0)