diff options
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index 41b3d9dda8..96ce586a9e 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -2379,6 +2379,11 @@ inchar ( int retesc = FALSE; /* return ESC with gotint */ int script_char; + if (wait_time == -1L || wait_time > 100L) { + // flush output before waiting + ui_flush(); + } + /* * Don't reset these when at the hit-return prompt, otherwise an endless * recursive loop may result (write error in swapfile, hit-return, timeout |