mirror of
https://github.com/neovim/neovim.git
synced 2025-10-14 22:06:07 +00:00
fix(ui): set redraw_cmdline when setting window height (#19630)
This commit is contained in:
@@ -5518,6 +5518,7 @@ void win_setheight_win(int height, win_T *win)
|
||||
msg_row = row;
|
||||
msg_col = 0;
|
||||
redraw_all_later(NOT_VALID);
|
||||
redraw_cmdline = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -59,7 +59,7 @@ describe('tabpage', function()
|
||||
screen:set_default_attr_ids({
|
||||
[0] = {bold = true, foreground = Screen.colors.Blue},
|
||||
[1] = {bold = true, reverse = true}, -- StatusLine
|
||||
[2] = {reverse = true}, -- StatusLineNC, TabLineFill
|
||||
[2] = {reverse = true}, -- TabLineFill
|
||||
[3] = {bold = true}, -- TabLineSel
|
||||
[4] = {background = Screen.colors.LightGrey, underline = true}, -- TabLine
|
||||
[5] = {bold = true, foreground = Screen.colors.Magenta},
|
||||
|
@@ -407,3 +407,40 @@ it('statusline does not crash if it has Arabic characters #19447', function()
|
||||
command('redraw!')
|
||||
assert_alive()
|
||||
end)
|
||||
|
||||
it('statusline is redrawn with :resize from <Cmd> mapping #19629', function()
|
||||
clear()
|
||||
local screen = Screen.new(40, 8)
|
||||
screen:set_default_attr_ids({
|
||||
[0] = {bold = true, foreground = Screen.colors.Blue}, -- NonText
|
||||
[1] = {bold = true, reverse = true}, -- StatusLine
|
||||
})
|
||||
screen:attach()
|
||||
exec([[
|
||||
set laststatus=2
|
||||
nnoremap <Up> <cmd>resize -1<CR>
|
||||
nnoremap <Down> <cmd>resize +1<CR>
|
||||
]])
|
||||
feed('<Up>')
|
||||
screen:expect([[
|
||||
^ |
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{1:[No Name] }|
|
||||
|
|
||||
|
|
||||
]])
|
||||
feed('<Down>')
|
||||
screen:expect([[
|
||||
^ |
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{1:[No Name] }|
|
||||
|
|
||||
]])
|
||||
end)
|
||||
|
Reference in New Issue
Block a user