aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/messages_spec.lua
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2024-03-11 07:13:48 +0100
committerLuuk van Baal <luukvbaal@gmail.com>2024-03-11 07:13:48 +0100
commitb72931e7040794f8c6adf6c0a446758f14107dda (patch)
tree80baa9c97f8faa58e62891385073ec8f0e245201 /test/functional/ui/messages_spec.lua
parent3814750d3789b5c5690e8fa68066bd864a4f0a8e (diff)
downloadrneovim-b72931e7040794f8c6adf6c0a446758f14107dda.tar.gz
rneovim-b72931e7040794f8c6adf6c0a446758f14107dda.tar.bz2
rneovim-b72931e7040794f8c6adf6c0a446758f14107dda.zip
feat(ui): allow non-zero 'cmdheight' with ext_messages
Problem: Arbitrary restriction on 'cmdheight' with ext_messages. The 'cmdheight'-area may be desirable for the replacing cmdline. Solution: Allow non-zero 'cmdheight' with ext_messages.
Diffstat (limited to 'test/functional/ui/messages_spec.lua')
-rw-r--r--test/functional/ui/messages_spec.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/functional/ui/messages_spec.lua b/test/functional/ui/messages_spec.lua
index 31b1464589..c18a07fef0 100644
--- a/test/functional/ui/messages_spec.lua
+++ b/test/functional/ui/messages_spec.lua
@@ -844,7 +844,7 @@ describe('ui/ext_messages', function()
}
end)
- it('implies ext_cmdline and ignores cmdheight', function()
+ it("implies ext_cmdline but allows changing 'cmdheight'", function()
eq(0, eval('&cmdheight'))
feed(':set cmdheight=1')
screen:expect {
@@ -864,15 +864,17 @@ describe('ui/ext_messages', function()
feed('<cr>')
screen:expect([[
^ |
- {1:~ }|*4
+ {1:~ }|*3
+ |
]])
- eq(0, eval('&cmdheight'))
+ eq(1, eval('&cmdheight'))
feed(':set cmdheight=0')
screen:expect {
grid = [[
^ |
- {1:~ }|*4
+ {1:~ }|*3
+ |
]],
cmdline = {
{