vim-patch:9.0.0670: no space for command line when there is a tabline (#20512)

Problem:    No space for command line when there is a tabline.
Solution:   Correct computation of where the command line should be.
            (closes vim/vim#11295)
c9f5f73206
This commit is contained in:
zeertzjq
2022-10-06 20:03:59 +08:00
committed by GitHub
parent 2c08ab5369
commit 25dea99ce5
4 changed files with 41 additions and 3 deletions

View File

@@ -2468,7 +2468,9 @@ static char *set_num_option(int opt_idx, char_u *varp, long value, char *errbuf,
// if p_ch changed value, change the command line height
// Only compute the new window layout when startup has been
// completed. Otherwise the frame sizes may be wrong.
if ((p_ch != old_value || topframe->fr_height != Rows - p_ch) && full_screen) {
if ((p_ch != old_value
|| tabline_height() + topframe->fr_height != Rows - p_ch)
&& full_screen) {
command_height();
}
} else if (pp == &p_uc) {