diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2023-04-01 03:11:56 +0200 |
---|---|---|
committer | Luuk van Baal <luukvbaal@gmail.com> | 2023-04-02 15:24:55 +0200 |
commit | c8a28b847e2b814b44fe77b46f7f4564ab59f0ac (patch) | |
tree | 2200f8f4cfd76ee26da70f5dcae840aa6ac90577 /test/functional/ui/statusline_spec.lua | |
parent | 3a4db8154ff043f044ab18d5fced42bffb1002fd (diff) | |
download | rneovim-c8a28b847e2b814b44fe77b46f7f4564ab59f0ac.tar.gz rneovim-c8a28b847e2b814b44fe77b46f7f4564ab59f0ac.tar.bz2 rneovim-c8a28b847e2b814b44fe77b46f7f4564ab59f0ac.zip |
fix(ui): ruler is not redrawn in cmdline with redrawstatus
Diffstat (limited to 'test/functional/ui/statusline_spec.lua')
-rw-r--r-- | test/functional/ui/statusline_spec.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/functional/ui/statusline_spec.lua b/test/functional/ui/statusline_spec.lua index ffd45a59a3..8e301dc70c 100644 --- a/test/functional/ui/statusline_spec.lua +++ b/test/functional/ui/statusline_spec.lua @@ -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) |