Force flush output before running shell command

Shell commands may take a long time to finish (without drawing anything)
so force a flush before executing any shell command.
This commit is contained in:
Bjorn Winckler
2011-02-01 20:19:15 +01:00
parent 6e6fac588c
commit 1eee089039
+12
View File
@@ -3725,6 +3725,12 @@ mch_call_shell(cmd, options)
# endif
out_flush();
#ifdef FEAT_GUI_MACVIM
/* It is conceivable that the shell command will take a long time to finish
* so force a flush now. */
if (gui.in_use)
gui_macvim_force_flush();
#endif
if (options & SHELL_COOKED)
settmode(TMODE_COOK); /* set to normal mode */
@@ -3846,6 +3852,12 @@ mch_call_shell(cmd, options)
goto error;
out_flush();
#ifdef FEAT_GUI_MACVIM
/* It is conceivable that the shell command will take a long time to finish
* so force a flush now. */
if (gui.in_use)
gui_macvim_force_flush();
#endif
if (options & SHELL_COOKED)
settmode(TMODE_COOK); /* set to normal mode */