diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-01-12 08:59:51 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-01-12 09:47:42 -0300 |
commit | a16cd73eadf473e3f2da104e2620680c4b5dd9d6 (patch) | |
tree | 3d0fd52a5540260af2d6e8c3900da5ed728b6b21 /src/nvim/ui.c | |
parent | 418a49f7f1eb5c6a5235cbf34852212899ea4a06 (diff) | |
download | rneovim-a16cd73eadf473e3f2da104e2620680c4b5dd9d6.tar.gz rneovim-a16cd73eadf473e3f2da104e2620680c4b5dd9d6.tar.bz2 rneovim-a16cd73eadf473e3f2da104e2620680c4b5dd9d6.zip |
ui: Fix redraw bug caused by race conditions with remote clients
Before sending a resize command to the UIs, flush the current output buffer to
ensure no redraw commands for a screen with invalid size are processed.
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r-- | src/nvim/ui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c index d66be0f8df..80dbea31cb 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -170,7 +170,7 @@ void ui_refresh(void) return; } - width = height = INT_MAX; + int width = INT_MAX, height = INT_MAX; for (size_t i = 0; i < ui_count; i++) { UI *ui = uis[i]; |