mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
fix(ui): do not call showmode() when setting window height
(cherry picked from commit 756e65ae62
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
3cea4d6de9
commit
bf4df2a629
@@ -5504,7 +5504,6 @@ void win_setheight_win(int height, win_T *win)
|
|||||||
msg_row = row;
|
msg_row = row;
|
||||||
msg_col = 0;
|
msg_col = 0;
|
||||||
redraw_all_later(NOT_VALID);
|
redraw_all_later(NOT_VALID);
|
||||||
showmode();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -17,6 +17,8 @@ local function new_screen(opt)
|
|||||||
[5] = {bold = true, foreground = Screen.colors.SeaGreen4},
|
[5] = {bold = true, foreground = Screen.colors.SeaGreen4},
|
||||||
[6] = {foreground = Screen.colors.Magenta},
|
[6] = {foreground = Screen.colors.Magenta},
|
||||||
[7] = {bold = true, foreground = Screen.colors.Brown},
|
[7] = {bold = true, foreground = Screen.colors.Brown},
|
||||||
|
[8] = {background = Screen.colors.LightGrey},
|
||||||
|
[9] = {bold = true},
|
||||||
})
|
})
|
||||||
return screen
|
return screen
|
||||||
end
|
end
|
||||||
@@ -846,6 +848,37 @@ describe('cmdline redraw', function()
|
|||||||
456789^ |
|
456789^ |
|
||||||
]], unchanged=true}
|
]], unchanged=true}
|
||||||
end)
|
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)
|
end)
|
||||||
|
|
||||||
describe("cmdline height", function()
|
describe("cmdline height", function()
|
||||||
|
Reference in New Issue
Block a user