]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.4461: MS-Windows: garbage characters on stdout with VIMDLL v8.2.4461
authorBram Moolenaar <Bram@vim.org>
Thu, 24 Feb 2022 11:39:43 +0000 (11:39 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 24 Feb 2022 11:39:43 +0000 (11:39 +0000)
Problem:    MS-Windows: garbage characters on stdout with VIMDLL.
Solution:   Don't call gui_focus_change() when about to quit. (Ken Takata,
            closes #9840)

src/gui_w32.c
src/version.c

index b5ddc5dace248e6f550d21e59ee38f839032774e..ec6267178aecfc80ee2ceb1dd88c7e08d1a82e72 100644 (file)
@@ -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);
index a34bad1e759fc1c583bc1cb5be93742fee409705..cfa06291a5925ce2fcb25b122079b438f653e4c2 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4461,
 /**/
     4460,
 /**/