Merge #21580 cmdline issues with cmdheight=0

This commit is contained in:
Justin M. Keyes
2023-01-03 11:02:32 -05:00
committed by GitHub
6 changed files with 44 additions and 6 deletions

View File

@@ -3843,7 +3843,7 @@ void compute_cmdrow(void)
cmdline_row = wp->w_winrow + wp->w_height
+ wp->w_hsep_height + wp->w_status_height + global_stl_height();
}
if (cmdline_row == Rows) {
if (cmdline_row == Rows && p_ch > 0) {
cmdline_row--;
}
lines_left = cmdline_row;