0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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)
This commit is contained in:
Bram Moolenaar
2019-01-25 22:29:57 +01:00
parent 970f5d39f2
commit cb574f4154
5 changed files with 29 additions and 13 deletions

View File

@@ -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