mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 13:38:34 +00:00
vim-patch:8.1.0822: peeking and flushing output slows down execution (#25629)
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)
cb574f4154
This commit is contained in:
@@ -2861,8 +2861,10 @@ int inchar(uint8_t *buf, int maxlen, long wait_time)
|
||||
}
|
||||
|
||||
// Always flush the output characters when getting input characters
|
||||
// from the user.
|
||||
ui_flush();
|
||||
// from the user and not just peeking.
|
||||
if (wait_time == -1L || wait_time > 10L) {
|
||||
ui_flush();
|
||||
}
|
||||
|
||||
// Fill up to a third of the buffer, because each character may be
|
||||
// tripled below.
|
||||
|
Reference in New Issue
Block a user