diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-04-03 16:02:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-03 16:02:44 +0200 |
commit | f34b849a22044874d8be0afe7fd455e45246740e (patch) | |
tree | a4c3a070824f47731c47a22142a0d8a89ce200a9 /test/functional/ui | |
parent | bc96bda5a2d69d995f193297fd25ec4ef7c1b97e (diff) | |
parent | c8a28b847e2b814b44fe77b46f7f4564ab59f0ac (diff) | |
download | rneovim-f34b849a22044874d8be0afe7fd455e45246740e.tar.gz rneovim-f34b849a22044874d8be0afe7fd455e45246740e.tar.bz2 rneovim-f34b849a22044874d8be0afe7fd455e45246740e.zip |
Merge pull request #22847 from luukvbaal/redrstatus
fix(ui): ruler is not redrawn in cmdline with redrawstatus
Diffstat (limited to 'test/functional/ui')
-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) |