From: Bram Moolenaar Date: Thu, 24 Feb 2022 11:39:43 +0000 (+0000) Subject: patch 8.2.4461: MS-Windows: garbage characters on stdout with VIMDLL X-Git-Tag: v8.2.4461 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3c620b0c0394b754597f68fdd9da5de76156f3ce;p=thirdparty%2Fvim.git patch 8.2.4461: MS-Windows: garbage characters on stdout with VIMDLL Problem: MS-Windows: garbage characters on stdout with VIMDLL. Solution: Don't call gui_focus_change() when about to quit. (Ken Takata, closes #9840) --- diff --git a/src/gui_w32.c b/src/gui_w32.c index b5ddc5dace..ec6267178a 100644 --- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -2899,6 +2899,8 @@ _OnKillFocus( HWND hwnd, HWND hwndNewFocus) { + if (destroying) + return; gui_focus_change(FALSE); s_getting_focus = FALSE; (void)DefWindowProcW(hwnd, WM_KILLFOCUS, (WPARAM)hwndNewFocus, 0); diff --git a/src/version.c b/src/version.c index a34bad1e75..cfa06291a5 100644 --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4461, /**/ 4460, /**/