diff src/os_mswin.c @ 29128:d8a962d7b008 v8.2.5084

patch 8.2.5084: when the GUI shows a dialog tests get stuck Commit: https://github.com/vim/vim/commit/2d12c25a1b73fb6991006fd970b3132ab8ee8b62 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 13 21:42:45 2022 +0100 patch 8.2.5084: when the GUI shows a dialog tests get stuck Problem: When the GUI shows a dialog tests get stuck. Solution: Add the --gui-dialog-file argument.
author Bram Moolenaar <Bram@vim.org>
date Mon, 13 Jun 2022 22:45:06 +0200
parents d2ef7d649fcb
children 247a6d944401
line wrap: on
line diff
--- a/src/os_mswin.c
+++ b/src/os_mswin.c
@@ -676,7 +676,10 @@ display_errors(void)
 	    for (p = (char *)error_ga.ga_data; *p; ++p)
 		if (!isspace(*p))
 		{
-		    (void)gui_mch_dialog(
+		    // Only use a dialog when not using --gui-dialog-file:
+		    // write text to a file.
+		    if (!gui_dialog_log((char_u *)"Errors", p))
+			(void)gui_mch_dialog(
 				     gui.starting ? VIM_INFO :
 					     VIM_ERROR,
 				     gui.starting ? (char_u *)_("Message") :