1
0
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:
Bram Moolenaar
2022-10-05 15:42:32 +01:00
parent f3ef026c98
commit 0816f473ab
5 changed files with 28 additions and 3 deletions

View File

@@ -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();
}