changeset 27871:2be33ea63428 v8.2.4461

patch 8.2.4461: MS-Windows: garbage characters on stdout with VIMDLL Commit: https://github.com/vim/vim/commit/3c620b0c0394b754597f68fdd9da5de76156f3ce Author: Bram Moolenaar <Bram@vim.org> 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)
author Bram Moolenaar <Bram@vim.org>
date Thu, 24 Feb 2022 12:45:05 +0100
parents f2acdcf33f2a
children 7f09baac337b
files src/gui_w32.c src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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,