aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/window.c1
-rw-r--r--test/functional/ui/cmdline_spec.lua33
2 files changed, 33 insertions, 1 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c
index 95796b29a1..1487759d60 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -5509,7 +5509,6 @@ void win_setheight_win(int height, win_T *win)
msg_row = row;
msg_col = 0;
redraw_all_later(NOT_VALID);
- showmode();
}
}
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()