diff options
author | bfredl <bjorn.linse@gmail.com> | 2024-04-21 09:31:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-21 09:31:24 +0200 |
commit | f42ab1dc4848eceab12c7180c2b9049da29a9ba6 (patch) | |
tree | fe46c69dad53636c83aaed9c0cf44d765087658c /test/functional/ui/cmdline_spec.lua | |
parent | 344906a08f0972108eb912c87af32b275ecf318e (diff) | |
parent | b5a38530ba18b324c739e1d087bd78e4a0a6d4b3 (diff) | |
download | rneovim-f42ab1dc4848eceab12c7180c2b9049da29a9ba6.tar.gz rneovim-f42ab1dc4848eceab12c7180c2b9049da29a9ba6.tar.bz2 rneovim-f42ab1dc4848eceab12c7180c2b9049da29a9ba6.zip |
Merge pull request #27872 from luukvbaal/cmdheight
fix(ui): don't force 'cmdheight' to zero with ext_messages
Diffstat (limited to 'test/functional/ui/cmdline_spec.lua')
-rw-r--r-- | test/functional/ui/cmdline_spec.lua | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/test/functional/ui/cmdline_spec.lua b/test/functional/ui/cmdline_spec.lua index 84aa153b0e..645f3851b2 100644 --- a/test/functional/ui/cmdline_spec.lua +++ b/test/functional/ui/cmdline_spec.lua @@ -1706,19 +1706,24 @@ describe('cmdheight=0', function() ]]) end) - it('cannot be resized at all with external messages', function() + it('can be resized with external messages', function() clear() screen = new_screen({ rgb = true, ext_messages = true }) command('set laststatus=2 mouse=a') command('resize -1') screen:expect([[ ^ | - {1:~ }|*3 + {1:~ }|*2 {3:[No Name] }| + | ]]) - api.nvim_input_mouse('left', 'press', '', 0, 6, 10) + api.nvim_input_mouse('left', 'press', '', 0, 3, 10) poke_eventloop() - api.nvim_input_mouse('left', 'drag', '', 0, 5, 10) - screen:expect_unchanged() + api.nvim_input_mouse('left', 'drag', '', 0, 4, 10) + screen:expect([[ + ^ | + {1:~ }|*3 + {3:[No Name] }| + ]]) end) end) |