0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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.
This commit is contained in:
Bram Moolenaar
2022-06-13 21:42:45 +01:00
parent db77c49401
commit 2d12c25a1b
15 changed files with 111 additions and 18 deletions

View File

@@ -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;