diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-03-16 08:35:43 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-03-16 08:35:43 -0300 |
commit | 1d80c0e3a058dcb6b0ee94e796ac258d1c61caaa (patch) | |
tree | cde83d46453e3cd56840a16191525826584062f6 /src/nvim/ui.c | |
parent | 5199456471a5c484a10e3590d20767c6a78d34e0 (diff) | |
download | rneovim-1d80c0e3a058dcb6b0ee94e796ac258d1c61caaa.tar.gz rneovim-1d80c0e3a058dcb6b0ee94e796ac258d1c61caaa.tar.bz2 rneovim-1d80c0e3a058dcb6b0ee94e796ac258d1c61caaa.zip |
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.
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r-- | src/nvim/ui.c | 4 |
1 files changed, 2 insertions, 2 deletions
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(); } |