# HG changeset patch # User Bram Moolenaar # Date 1645703105 -3600 # Node ID 2be33ea63428c1c8675c2bd52940c67d54f2a857 # Parent f2acdcf33f2a7a16d3f6c5f8b7d3fd63e2688bc6 patch 8.2.4461: MS-Windows: garbage characters on stdout with VIMDLL Commit: https://github.com/vim/vim/commit/3c620b0c0394b754597f68fdd9da5de76156f3ce Author: Bram Moolenaar Date: Thu Feb 24 11:39:43 2022 +0000 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 --- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -2899,6 +2899,8 @@ gui_mch_show_popupmenu_at(vimmenu_T *men 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 --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4461, +/**/ 4460, /**/ 4459,