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:
@@ -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
|
||||
|
Reference in New Issue
Block a user