From 1d80c0e3a058dcb6b0ee94e796ac258d1c61caaa Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Mon, 16 Mar 2015 08:35:43 -0300 Subject: ui: Only call ui_flush when the busy state changes Also add back the `ui_flush` call to `get_keystroke`. Its necessary to display prompt messages correctly. --- src/nvim/misc1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/misc1.c') 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. */ -- cgit