mirror of
https://github.com/neovim/neovim.git
synced 2026-05-29 16:25:35 +00:00
fix(grid): keep grid sizes updated during redraw #39757
Problem: Assert tripped when window is resized during update_screen(). Solution: Re-allocate grid when resizing happens during update_screen().
This commit is contained in:
@@ -7081,6 +7081,11 @@ void win_set_inner_size(win_T *wp, bool valid_cursor)
|
||||
}
|
||||
|
||||
wp->w_redr_status = true;
|
||||
|
||||
// Must keep grid dimensions updated during redraw.
|
||||
if (updating_screen) {
|
||||
win_grid_alloc(wp);
|
||||
}
|
||||
}
|
||||
|
||||
/// Set the width of a window.
|
||||
|
||||
Reference in New Issue
Block a user