diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-01-08 10:42:12 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-01-12 09:47:41 -0300 |
commit | a8fe32040b039c134087c4c0d8c9e14bf50fef1a (patch) | |
tree | 2492e68deea02d7efae97aafbdedb7f9b1016357 | |
parent | 869c734890e493279b1880a773de24fa5f57adfb (diff) | |
download | rneovim-a8fe32040b039c134087c4c0d8c9e14bf50fef1a.tar.gz rneovim-a8fe32040b039c134087c4c0d8c9e14bf50fef1a.tar.bz2 rneovim-a8fe32040b039c134087c4c0d8c9e14bf50fef1a.zip |
ui: Dont resize screen if no UIs are attached
This prevents a race condition when a UI attaches early in the program and can
receive redraw commands for a invalid screen
-rw-r--r-- | src/nvim/ui.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c index b95fdd1104..80f8b9221a 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -167,6 +167,10 @@ void ui_cursor_shape(void) void ui_refresh(void) { + if (!ui_count) { + return; + } + width = height = INT_MAX; for (size_t i = 0; i < ui_count; i++) { |