aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/messages_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-02-11 18:12:56 +0800
committerGitHub <noreply@github.com>2024-02-11 18:12:56 +0800
commitca258db15668242c50a0529111398f53e4e01619 (patch)
tree219470b191255ae9e17b9fe45797ed634ba6af16 /test/functional/ui/messages_spec.lua
parent170c890dca8f160bdcd41e4fdc6bf15ee0bdba49 (diff)
downloadrneovim-ca258db15668242c50a0529111398f53e4e01619.tar.gz
rneovim-ca258db15668242c50a0529111398f53e4e01619.tar.bz2
rneovim-ca258db15668242c50a0529111398f53e4e01619.zip
fix(messages): clear new lines when increasing 'cmdheight' (#27421)
Diffstat (limited to 'test/functional/ui/messages_spec.lua')
-rw-r--r--test/functional/ui/messages_spec.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/functional/ui/messages_spec.lua b/test/functional/ui/messages_spec.lua
index 9d1b6163d2..31b1464589 100644
--- a/test/functional/ui/messages_spec.lua
+++ b/test/functional/ui/messages_spec.lua
@@ -1555,6 +1555,23 @@ vimComment xxx match /\s"[^\-:.%#=*].*$/ms=s+1,lc=1 excludenl contains=@vim
]])
eq({ mode = 'n', blocking = false }, api.nvim_get_mode())
end)
+
+ it('bottom of screen is cleared after increasing &cmdheight #20360', function()
+ command('set laststatus=2')
+ screen:expect([[
+ ^ |
+ {1:~ }|*4
+ {3:[No Name] }|
+ |
+ ]])
+ command('set cmdheight=4')
+ screen:expect([[
+ ^ |
+ {1:~ }|
+ {3:[No Name] }|
+ |*4
+ ]])
+ end)
end)
it('calling screenstring() after redrawing between messages without UI #20999', function()