diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-09-27 13:21:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-27 13:21:29 +0200 |
commit | 26d6f030231831ad9804f195155111aaf375340a (patch) | |
tree | 08c6b2f59dd89b9ba9ee16d9a778327e74591245 /src/nvim/drawscreen.c | |
parent | 10e57ad4cb99c43544f53f784f8eb368a2008353 (diff) | |
parent | 10cabf787724871173a294f2fc1a5dbc62f2ee91 (diff) | |
download | rneovim-26d6f030231831ad9804f195155111aaf375340a.tar.gz rneovim-26d6f030231831ad9804f195155111aaf375340a.tar.bz2 rneovim-26d6f030231831ad9804f195155111aaf375340a.zip |
Merge pull request #25374 from bfredl/batchupdate
refactor(grid): use batched updates for more things
Diffstat (limited to 'src/nvim/drawscreen.c')
-rw-r--r-- | src/nvim/drawscreen.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |