aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-12-26 03:38:54 -0500
committerGitHub <noreply@github.com>2020-12-26 03:38:54 -0500
commitc64cce906e7ed828d331e1786c985ff7aa734546 (patch)
tree5f8913cf05a046d2ec23840915d8bb1884db768f /src/nvim/getchar.c
parent84faeb07d0018c674c2bc730333fefae6123f366 (diff)
parent44bb7147e40743d9a70ee3a2663a7a7dacec7b13 (diff)
downloadrneovim-c64cce906e7ed828d331e1786c985ff7aa734546.tar.gz
rneovim-c64cce906e7ed828d331e1786c985ff7aa734546.tar.bz2
rneovim-c64cce906e7ed828d331e1786c985ff7aa734546.zip
Merge pull request #10848 from janlazo/vim-8.1.1189
vim-patch:8.1.{822,1189,1192}
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r--src/nvim/getchar.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index 2e2993ed26..eddbdef739 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -2490,8 +2490,10 @@ int inchar(
}
// 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.