mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 07:18:17 +00: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:
@@ -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++) {
|
||||
|
Reference in New Issue
Block a user