aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/misc1.c2
-rw-r--r--src/nvim/ui.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c
index 9c08a7c1f7..07cbc0f7c4 100644
--- a/src/nvim/misc1.c
+++ b/src/nvim/misc1.c
@@ -2364,7 +2364,7 @@ int get_keystroke(void)
mapped_ctrl_c = FALSE; /* mappings are not used here */
for (;; ) {
-
+ ui_flush();
/* Leave some room for check_termcode() to insert a key code into (max
* 5 chars plus NUL). And fix_input_buffer() can triple the number of
* bytes. */
diff --git a/src/nvim/ui.c b/src/nvim/ui.c
index 0283e7bd62..2189021d22 100644
--- a/src/nvim/ui.c
+++ b/src/nvim/ui.c
@@ -155,16 +155,16 @@ void ui_busy_start(void)
{
if (!(busy++)) {
UI_CALL(busy_start);
+ ui_flush();
}
- ui_flush();
}
void ui_busy_stop(void)
{
if (!(--busy)) {
UI_CALL(busy_stop);
+ ui_flush();
}
- ui_flush();
}