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-13 21:21:20 -0300 |
commit | 784bda07040bda16a2e004dcac39a5194d5053b1 (patch) | |
tree | eec4c897eac4e07e76cf4fdc30468e9f71aecabe /src/nvim/ui.c | |
parent | f3666e55a44b3f241a98c9509551e2d2bb7bae12 (diff) | |
download | rneovim-784bda07040bda16a2e004dcac39a5194d5053b1.tar.gz rneovim-784bda07040bda16a2e004dcac39a5194d5053b1.tar.bz2 rneovim-784bda07040bda16a2e004dcac39a5194d5053b1.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 914b04111e..ef0386e395 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -173,7 +173,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]; |