mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 9.0.0191: messages test fails; window size incorrect
Problem: Messages test fails; window size incorrect when 'cmdheight' is made smaller. Solution: Properly cleanup after test with cmdheight zero. Resize windows correctly when 'cmdheight' gets smaller.
This commit is contained in:
@@ -6555,6 +6555,12 @@ command_height(void)
|
||||
if (p_ch > old_p_ch && cmdline_row <= Rows - p_ch)
|
||||
return;
|
||||
|
||||
// If cmdline_row is smaller than what it is supposed to be for 'cmdheight'
|
||||
// then set old_p_ch to what it would be, so that the windows get resized
|
||||
// properly for the new value.
|
||||
if (cmdline_row < Rows - p_ch)
|
||||
old_p_ch = Rows - cmdline_row;
|
||||
|
||||
// Find bottom frame with width of screen.
|
||||
frp = lastwin->w_frame;
|
||||
while (frp->fr_width != Columns && frp->fr_parent != NULL)
|
||||
|
Reference in New Issue
Block a user