fix(ui): ruler is not redrawn in cmdline with redrawstatus

This commit is contained in:
Luuk van Baal
2023-04-01 03:11:56 +02:00
parent 3a4db8154f
commit c8a28b847e
3 changed files with 24 additions and 1 deletions

View File

@@ -636,3 +636,20 @@ it('statusline is redrawn on recording state change #22683', function()
recording @Q |
]])
end)
it('ruler is redrawn in cmdline with redrawstatus #22804', function()
clear()
local screen = Screen.new(40, 2)
screen:attach()
command([[
let g:n = 'initial value'
set ls=1 ru ruf=%{g:n}
redraw
let g:n = 'other value'
redrawstatus
]])
screen:expect([[
^ |
other value |
]])
end)