patch 8.1.0822: peeking and flushing output slows down execution
Problem: Peeking and flushing output slows down execution.
Solution: Do not update the mode message when global_busy is set. Do not
flush when only peeking for a character. (Ken Takata)
diff --git a/src/edit.c b/src/edit.c
index 92dbf4c..f797d7f 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -8722,7 +8722,7 @@
*/
if (reg_recording != 0 || restart_edit != NUL)
showmode();
- else if (p_smd)
+ else if (p_smd && !skip_showmode())
msg("");
return TRUE; /* exit Insert mode */