From 897e17c8d2ff634dcc5b3c5f1f93c2f0ce27fffb Mon Sep 17 00:00:00 2001 From: Kazuki Sakamoto Date: Mon, 24 Jul 2017 16:11:15 -0700 Subject: [PATCH] Force a flush for terminal --- src/terminal.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/terminal.c b/src/terminal.c index f75ac38c3f..f5d5669cd4 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -343,6 +343,11 @@ write_to_term(buf_T *buffer, char_u *msg, channel_T *channel) /* TODO: only update once in a while. */ update_screen(0); update_cursor(); +#ifdef FEAT_GUI_MACVIM + /* Force a flush now for better experience of interactive shell. */ + if (gui.in_use) + gui_macvim_force_flush(); +#endif } /*