[vim/vim] :redrawstatus does not update the ruler in the last line (PR #20865)
h_east (Vim Github Repository) <[email protected]> Wed, 29 Jul 2026 01:21:51 -0700
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <vim/vim/pull/[email protected]> |
```
Problem: When the last window has no status line the ruler is drawn in
the last screen line, but ":redrawstatus" and re-setting
'rulerformat' or 'statusline' do not update it there. An item
such as a clock in 'rulerformat' can therefore not be
refreshed from a timer.
Solution: Also mark the last screen line for redrawing when the last
window has no status line and 'ruler' is set. Update the
documentation and add a test.
```
related: https://groups.google.com/g/vim_use/c/VKCL2bH8xlk
---
Currently, this is possible with the following setting, but it only updates the status line of the current window when windows are split, and above all, it is not intuitive:
```vim
set ruler
set rulerformat=%55(%{strftime('%H:%M:%S')}\ %5l,%-6(%c%V%)\ %P%)
call timer_start(1000, {-> feedkeys("\<Ignore>", 'n')}, {'repeat': -1})
```
After applying this PR, it would be better to write the third line as follows:
```vim
call timer_start(1000, {-> execute(':redrawstatus!')}, {'repeat': -1})
```
You can view, comment on, or merge this pull request online at:
https://github.com/vim/vim/pull/20865
-- Commit Summary --
* :redrawstatus does not update the ruler in the last line
-- File Changes --
M runtime/doc/various.txt (3)
M src/drawscreen.c (14)
M src/testdir/test_cmdline.vim (26)
-- Patch Links --
https://github.com/vim/vim/pull/20865.patch
https://github.com/vim/vim/pull/20865.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/vim/vim/pull/20865
You are receiving this because you are subscribed to this thread.
Message ID: <vim/vim/pull/[email protected]>
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_dev/vim/vim/pull/20865%40github.com.