diff options
author | luukvbaal <31730729+luukvbaal@users.noreply.github.com> | 2023-01-13 04:47:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-13 11:47:55 +0800 |
commit | 1097d239c307a10a87fa995c4cfbe5987939e177 (patch) | |
tree | 5f62191f140d2872e2001d58a2f7ea8ef009d340 /test/functional/ui/cmdline_spec.lua | |
parent | 4876654d4cc9bb43f266c7c9d412f36ab57fa571 (diff) | |
download | rneovim-1097d239c307a10a87fa995c4cfbe5987939e177.tar.gz rneovim-1097d239c307a10a87fa995c4cfbe5987939e177.tar.bz2 rneovim-1097d239c307a10a87fa995c4cfbe5987939e177.zip |
fix(ui): command line issues with external messages (#21709)
* fix: don't truncate external messages
* fix: avoid resizing command line with external messages
Diffstat (limited to 'test/functional/ui/cmdline_spec.lua')
-rw-r--r-- | test/functional/ui/cmdline_spec.lua | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/functional/ui/cmdline_spec.lua b/test/functional/ui/cmdline_spec.lua index 8e689fb378..0fa6929df0 100644 --- a/test/functional/ui/cmdline_spec.lua +++ b/test/functional/ui/cmdline_spec.lua @@ -8,6 +8,7 @@ local exec = helpers.exec local eval = helpers.eval local eq = helpers.eq local is_os = helpers.is_os +local meths = helpers.meths local function new_screen(opt) local screen = Screen.new(25, 5) @@ -1387,17 +1388,20 @@ describe('cmdheight=0', function() ]]) end) - it("clears cmdline area when resized with external messages", function() + it("cannot be resized at all with external messages", function() clear() screen = new_screen({rgb=true, ext_messages=true}) - command('set laststatus=2 cmdheight=0') + command('set laststatus=2 mouse=a') command('resize -1') screen:expect([[ ^ | {1:~ }| {1:~ }| + {1:~ }| {3:[No Name] }| - | ]]) + meths.input_mouse('left', 'press', '', 0, 6, 10) + meths.input_mouse('left', 'drag', '', 0, 5, 10) + screen:expect_unchanged() end) end) |