diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-01-25 22:29:57 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-01-25 22:29:57 +0100 |
commit | cb574f415486adff645ce384979bfecf27f5be8c (patch) | |
tree | 7e3ffdb38c38d7b8c1c2c30bfbd9c86e369749ff /src/getchar.c | |
parent | 970f5d39f27717b1a529b7b250a8ed7c3f791949 (diff) | |
download | vim-git-cb574f415486adff645ce384979bfecf27f5be8c.tar.gz |
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/getchar.c')
-rw-r--r-- | src/getchar.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/getchar.c b/src/getchar.c index ff1b06b02..fe74dbfa1 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -3039,9 +3039,10 @@ inchar( /* * Always flush the output characters when getting input characters - * from the user. + * from the user and not just peeking. */ - out_flush(); + if (wait_time == -1L || wait_time > 10L) + out_flush(); /* * Fill up to a third of the buffer, because each character may be |