mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-07 15:37:14 +02:00
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:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user