diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-06-15 19:41:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-15 19:41:58 +0800 |
commit | 0c6ad03c3f89c2ff26dfd2f2e861cf3ed09f6c87 (patch) | |
tree | b456b69956d00f54fbdd16f30c0aff4258588c39 /test/functional/ui/cmdline_spec.lua | |
parent | 504d7decbdef55d58e62217a0a54cbee2a0944cc (diff) | |
download | rneovim-0c6ad03c3f89c2ff26dfd2f2e861cf3ed09f6c87.tar.gz rneovim-0c6ad03c3f89c2ff26dfd2f2e861cf3ed09f6c87.tar.bz2 rneovim-0c6ad03c3f89c2ff26dfd2f2e861cf3ed09f6c87.zip |
fix(ui): do not call showmode() when setting window height (#18969)
Diffstat (limited to 'test/functional/ui/cmdline_spec.lua')
-rw-r--r-- | test/functional/ui/cmdline_spec.lua | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/test/functional/ui/cmdline_spec.lua b/test/functional/ui/cmdline_spec.lua index 0aee34d367..0315d2b479 100644 --- a/test/functional/ui/cmdline_spec.lua +++ b/test/functional/ui/cmdline_spec.lua @@ -19,6 +19,8 @@ local function new_screen(opt) [5] = {bold = true, foreground = Screen.colors.SeaGreen4}, [6] = {foreground = Screen.colors.Magenta}, [7] = {bold = true, foreground = Screen.colors.Brown}, + [8] = {background = Screen.colors.LightGrey}, + [9] = {bold = true}, }) return screen end @@ -848,6 +850,37 @@ describe('cmdline redraw', function() 456789^ | ]], unchanged=true} end) + + it('after pressing Ctrl-C in cmdwin in Visual mode #18967', function() + screen:try_resize(40, 10) + command('set cmdwinheight=3') + feed('q:iabc<Esc>vhh') + screen:expect([[ + | + {1:~ }| + {1:~ }| + {1:~ }| + {2:[No Name] }| + {1::}^a{8:bc} | + {1:~ }| + {1:~ }| + {3:[Command Line] }| + {9:-- VISUAL --} | + ]]) + feed('<C-C>') + screen:expect([[ + | + {1:~ }| + {1:~ }| + {1:~ }| + {2:[No Name] }| + {1::}a{8:bc} | + {1:~ }| + {1:~ }| + {3:[Command Line] }| + :^abc | + ]]) + end) end) describe("cmdline height", function() |