forked from aniani/vim
patch 9.0.0665: setting 'cmdheight' has no effect if last window was resized
Problem: Setting 'cmdheight' has no effect if last window was resized.
Solution: Do apply 'cmdheight' when told to. Use the frame height instead
of the cmdline_row. (closes #11286)
This commit is contained in:
@@ -3577,11 +3577,12 @@ set_num_option(
|
||||
|
||||
// Only compute the new window layout when startup has been
|
||||
// completed. Otherwise the frame sizes may be wrong.
|
||||
if (p_ch != old_value && full_screen
|
||||
if ((p_ch != old_value || topframe->fr_height != Rows - p_ch)
|
||||
&& full_screen
|
||||
#ifdef FEAT_GUI
|
||||
&& !gui.starting
|
||||
#endif
|
||||
)
|
||||
)
|
||||
command_height();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user