diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-04-03 16:02:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-03 16:02:44 +0200 |
commit | f34b849a22044874d8be0afe7fd455e45246740e (patch) | |
tree | a4c3a070824f47731c47a22142a0d8a89ce200a9 /src/nvim/drawscreen.c | |
parent | bc96bda5a2d69d995f193297fd25ec4ef7c1b97e (diff) | |
parent | c8a28b847e2b814b44fe77b46f7f4564ab59f0ac (diff) | |
download | rneovim-f34b849a22044874d8be0afe7fd455e45246740e.tar.gz rneovim-f34b849a22044874d8be0afe7fd455e45246740e.tar.bz2 rneovim-f34b849a22044874d8be0afe7fd455e45246740e.zip |
Merge pull request #22847 from luukvbaal/redrstatus
fix(ui): ruler is not redrawn in cmdline with redrawstatus
Diffstat (limited to 'src/nvim/drawscreen.c')
-rw-r--r-- | src/nvim/drawscreen.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/drawscreen.c b/src/nvim/drawscreen.c index f90a41c406..5ced55b2c7 100644 --- a/src/nvim/drawscreen.c +++ b/src/nvim/drawscreen.c @@ -2683,6 +2683,11 @@ void status_redraw_buf(buf_T *buf) redraw_later(wp, UPD_VALID); } } + // Redraw the ruler if it is in the command line and was not marked for redraw above + if (p_ru && !curwin->w_status_height && !curwin->w_redr_status) { + redraw_cmdline = true; + redraw_later(curwin, UPD_VALID); + } } /// Redraw all status lines that need to be redrawn. |