Patch 9.0.0408

2 views
Skip to first unread message

Bram Moolenaar

unread,
Sep 7, 2022, 2:05:02 PM9/7/22
to vim...@googlegroups.com

Patch 9.0.0408
Problem: GUI test sometimes fails on MS-Windows.
Solution: Make sure Vim is the foreground window. (Ken Takata, closes #11077)
Files: src/gui_w32.c


*** ../vim-9.0.0407/src/gui_w32.c 2022-07-31 12:26:01.424141509 +0100
--- src/gui_w32.c 2022-09-07 19:00:41.388675473 +0100
***************
*** 8649,8654 ****
--- 8649,8655 ----
inputs[0].ki.wVk = vkCode;
if (STRICMP(event, "keyup") == 0)
inputs[0].ki.dwFlags = KEYEVENTF_KEYUP;
+ (void)SetForegroundWindow(s_hwnd);
SendInput(ARRAYSIZE(inputs), inputs, sizeof(INPUT));
}
else
*** ../vim-9.0.0407/src/version.c 2022-09-07 18:21:21.200339788 +0100
--- src/version.c 2022-09-07 19:02:17.024400894 +0100
***************
*** 705,706 ****
--- 705,708 ----
{ /* Add new patch number below this line */
+ /**/
+ 408,
/**/

--
For a moment, nothing happened.
Then, after a second or so, nothing continued to happen.
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages