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.
diff --git a/src/os_mswin.c b/src/os_mswin.c
index b6e8d71..48a6972 100644
--- a/src/os_mswin.c
+++ b/src/os_mswin.c
@@ -676,7 +676,10 @@
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") :