From 46ae2ec9cbed8200db9494aa79932a90a99616b3 Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Mon, 9 Jun 2008 18:48:10 +0200 Subject: [PATCH] Force flush output queue before showing dialog This ensures that the swap file information is displayed when the 'swap file exists' dialog is shown. --- src/message.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/message.c b/src/message.c index b2daa90e22..4c39817712 100644 --- a/src/message.c +++ b/src/message.c @@ -3288,6 +3288,11 @@ do_dialog(type, title, message, buttons, dfltbutton, textfield) /* When GUI is running and 'c' not in 'guioptions', use the GUI dialog */ if (gui.in_use && vim_strchr(p_go, GO_CONDIALOG) == NULL) { +# ifdef FEAT_GUI_MACVIM + /* The 'swap file exists' dialog also displays text in the editor + * window so make sure this is flushed before showing the dialog. */ + gui_macvim_force_flush(); +# endif c = gui_mch_dialog(type, title, message, buttons, dfltbutton, textfield); msg_end_prompt();