diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-03-14 11:28:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-14 11:28:48 +0100 |
commit | ef31444cccdd93f515a8b7a968268cb04e680370 (patch) | |
tree | 29010dea2b668b8020bd3fbfb98a764c5134fb6d /src | |
parent | 27b467bad24dca5bc48dbf80f99ff6809afe1ea0 (diff) | |
parent | 0f1e2b6686694d878795fa090d4a08ba0f8acb4d (diff) | |
download | rneovim-ef31444cccdd93f515a8b7a968268cb04e680370.tar.gz rneovim-ef31444cccdd93f515a8b7a968268cb04e680370.tar.bz2 rneovim-ef31444cccdd93f515a8b7a968268cb04e680370.zip |
Merge pull request #22659 from bfredl/floatruler
fix(screen): redraw the ruler for a current floating window
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/drawscreen.c | 2 | ||||
-rw-r--r-- | src/nvim/screen.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/drawscreen.c b/src/nvim/drawscreen.c index d8c9da870a..e1894f27a7 100644 --- a/src/nvim/drawscreen.c +++ b/src/nvim/drawscreen.c @@ -746,7 +746,7 @@ void show_cursor_info_later(bool force) || curwin->w_topfill != curwin->w_stl_topfill || empty_line != curwin->w_stl_empty || state != curwin->w_stl_state) { - if ((curwin->w_status_height || global_stl_height())) { + if (curwin->w_status_height || global_stl_height()) { curwin->w_redr_status = true; } else { redraw_cmdline = true; diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 8b0f8b58a7..718c4f3d95 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -608,7 +608,7 @@ int showmode(void) // If the last window has no status line and global statusline is disabled, // the ruler is after the mode message and must be redrawn - win_T *last = lastwin_nofloating(); + win_T *last = curwin->w_floating ? curwin : lastwin_nofloating(); if (redrawing() && last->w_status_height == 0 && global_stl_height() == 0) { win_redr_ruler(last); } |