:redrawstatus does not update the ruler in the last window - #20865
Open
h-east wants to merge 2 commits into
Open
:redrawstatus does not update the ruler in the last window#20865h-east wants to merge 2 commits into
h-east wants to merge 2 commits into
Conversation
Problem: When the last window has no status line the ruler takes its
place 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 ruler for redrawing when the last window has no
status line and 'ruler' is set. Update the documentation and
add a test.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
h-east
force-pushed
the
redrawstatus-ruler-lastwin
branch
from
July 29, 2026 08:24
15dd324 to
282d5bc
Compare
The ruler in the last screen line was not updated when the FocusLost and FocusGained autocommands changed the buffer, so the dumps recorded the stale "0,0-1". With the ruler being redrawn it now shows "1,1", which is what a window with a status line already showed. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
After applying this PR, it would be better to write the third line as follows:
Notes
The screen dumps of Test_aa_terminal_focus_events had to be updated: they
recorded the ruler as "0,0-1" although the FocusLost/FocusGained
autocommands had already changed the buffer, so the ruler was stale. It
now shows "1,1", which is what a window with a status line showed all
along.