mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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
This commit is contained in:
parent
869c734890
commit
a8fe32040b
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user