mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
fix(grid): double grid_line_start() with ext_messages #31292
Problem: Hit double grid_line_start() assert when redrawing from ext_messages msg_ruler event. Solution: Do not start() batched grid calls when win_redr_ruler() will not puts() anything.
This commit is contained in:
@@ -1092,9 +1092,13 @@ int showmode(void)
|
||||
win_T *ruler_win = curwin->w_status_height == 0 ? curwin : lastwin_nofloating();
|
||||
if (redrawing() && ruler_win->w_status_height == 0 && global_stl_height() == 0
|
||||
&& !(p_ch == 0 && !ui_has(kUIMessages))) {
|
||||
grid_line_start(&msg_grid_adj, Rows - 1);
|
||||
if (!ui_has(kUIMessages)) {
|
||||
grid_line_start(&msg_grid_adj, Rows - 1);
|
||||
}
|
||||
win_redr_ruler(ruler_win);
|
||||
grid_line_flush();
|
||||
if (!ui_has(kUIMessages)) {
|
||||
grid_line_flush();
|
||||
}
|
||||
}
|
||||
|
||||
redraw_cmdline = false;
|
||||
|
Reference in New Issue
Block a user