From 10cabf787724871173a294f2fc1a5dbc62f2ee91 Mon Sep 17 00:00:00 2001 From: bfredl Date: Tue, 26 Sep 2023 14:28:58 +0200 Subject: refactor(grid): use batched updates for statusline and ruler --- src/nvim/drawscreen.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/nvim/drawscreen.c') diff --git a/src/nvim/drawscreen.c b/src/nvim/drawscreen.c index 04918e9979..f65146fd16 100644 --- a/src/nvim/drawscreen.c +++ b/src/nvim/drawscreen.c @@ -1094,8 +1094,11 @@ int showmode(void) // If the current or last window has no status line and global statusline is disabled, // the ruler is after the mode message and must be redrawn win_T *ruler_win = curwin->w_status_height == 0 ? curwin : lastwin_nofloating(); - if (redrawing() && ruler_win->w_status_height == 0 && global_stl_height() == 0) { + 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); win_redr_ruler(ruler_win); + grid_line_flush(false); } redraw_cmdline = false; -- cgit