summaryrefslogtreecommitdiffstats
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-25 22:29:57 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-25 22:29:57 +0100
commitcb574f415486adff645ce384979bfecf27f5be8c (patch)
tree7e3ffdb38c38d7b8c1c2c30bfbd9c86e369749ff /src/edit.c
parent970f5d39f27717b1a529b7b250a8ed7c3f791949 (diff)
patch 8.1.0822: peeking and flushing output slows down executionv8.1.0822
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)
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/edit.c b/src/edit.c
index 92dbf4cb51..f797d7f04e 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -8722,7 +8722,7 @@ ins_esc(
*/
if (reg_recording != 0 || restart_edit != NUL)
showmode();
- else if (p_smd)
+ else if (p_smd && !skip_showmode())
msg("");
return TRUE; /* exit Insert mode */