aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-04-02 13:37:24 +0200
committerGitHub <noreply@github.com>2023-04-02 13:37:24 +0200
commit3a4db8154ff043f044ab18d5fced42bffb1002fd (patch)
tree33dafdef6c525994c2926b48b85fb750f1815f41 /test/functional
parentda6a42cdafb812b0a188b8f06cffa9835c19d3fb (diff)
parente3a3d300636872f786f0c8a338ed1a3749d0a1f6 (diff)
downloadrneovim-3a4db8154ff043f044ab18d5fced42bffb1002fd.tar.gz
rneovim-3a4db8154ff043f044ab18d5fced42bffb1002fd.tar.bz2
rneovim-3a4db8154ff043f044ab18d5fced42bffb1002fd.zip
Merge pull request #22844 from luukvbaal/stlrecording
fix(ui): recording change doesn't trigger statusline redraw
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/ui/statusline_spec.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/ui/statusline_spec.lua b/test/functional/ui/statusline_spec.lua
index c59ade0e31..ffd45a59a3 100644
--- a/test/functional/ui/statusline_spec.lua
+++ b/test/functional/ui/statusline_spec.lua
@@ -622,3 +622,17 @@ it('K_EVENT does not trigger a statusline redraw unnecessarily', function()
sleep(50)
eq(1, eval('g:counter < 50'), 'g:counter=' .. eval('g:counter'))
end)
+
+it('statusline is redrawn on recording state change #22683', function()
+ clear()
+ local screen = Screen.new(40, 4)
+ screen:attach()
+ command('set ls=2 stl=%{repeat(reg_recording(),5)}')
+ feed('qQ')
+ screen:expect([[
+ ^ |
+ ~ |
+ QQQQQ |
+ recording @Q |
+ ]])
+end)