summaryrefslogtreecommitdiffstats
path: root/src/message.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-06-13 21:42:45 +0100
committerBram Moolenaar <Bram@vim.org>2022-06-13 21:42:45 +0100
commit2d12c25a1b73fb6991006fd970b3132ab8ee8b62 (patch)
tree792f7cec3f4beb90fc67ab120ea87e3155c13686 /src/message.c
parentdb77c49401145d76441fbb3d22a1d7d987681c13 (diff)
patch 8.2.5084: when the GUI shows a dialog tests get stuckv8.2.5084
Problem: When the GUI shows a dialog tests get stuck. Solution: Add the --gui-dialog-file argument.
Diffstat (limited to 'src/message.c')
-rw-r--r--src/message.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/message.c b/src/message.c
index ed9b532512..3c9e4a0119 100644
--- a/src/message.c
+++ b/src/message.c
@@ -3798,7 +3798,11 @@ do_dialog(
// When GUI is running and 'c' not in 'guioptions', use the GUI dialog
if (gui.in_use && vim_strchr(p_go, GO_CONDIALOG) == NULL)
{
- c = gui_mch_dialog(type, title, message, buttons, dfltbutton,
+ // --gui-dialog-file: write text to a file
+ if (gui_dialog_log(title, message))
+ c = dfltbutton;
+ else
+ c = gui_mch_dialog(type, title, message, buttons, dfltbutton,
textfield, ex_cmd);
// avoid a hit-enter prompt without clearing the cmdline
need_wait_return = FALSE;