]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0873: :redrawstatus does not update the ruler of the last window v9.2.0873
authorHirohito Higashi <h.east.727@gmail.com>
Wed, 29 Jul 2026 18:45:28 +0000 (18:45 +0000)
committerChristian Brabandt <cb@256bit.org>
Wed, 29 Jul 2026 18:45:28 +0000 (18:45 +0000)
commit430ea723347acdf5caa236993022ee2087f40187
treeb37baf038e3523b1554732cb4187107a6521cb9d
parentb34beebd24e7636149fd770f04838973f29f1706
patch 9.2.0873: :redrawstatus does not update the ruler of the last window

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 (watael)
Solution: Also mark the ruler for redrawing when the last window has no
          status line and 'ruler' is set.  Update the documentation,
          tests and add a new test (Hirohito Higashi)

Reported: https://groups.google.com/g/vim_use/c/VKCL2bH8xlk
closes: #20865

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/various.txt
src/drawscreen.c
src/testdir/dumps/Test_terminal_focus_1.dump
src/testdir/dumps/Test_terminal_focus_2.dump
src/testdir/test_cmdline.vim
src/version.c