@@ -5412,11 +5412,17 @@ void win_setheight_win(int height, win_T *win)
5412
5412
// line, clear it.
5413
5413
if (full_screen && msg_scrolled == 0 && row < cmdline_row) {
5414
5414
grid_fill(&default_grid, row, cmdline_row, 0, Columns, ' ', ' ', 0);
5415
+
if (msg_grid.chars) {
5416
+
clear_cmdline = true;
5417
+
}
5415
5418
}
5416
5419
cmdline_row = row;
5420
+
p_ch = MAX(Rows - cmdline_row, 1);
5421
+
curtab->tp_ch_used = p_ch;
5417
5422
msg_row = row;
5418
5423
msg_col = 0;
5419
5424
redraw_all_later(NOT_VALID);
5425
+
showmode();
5420
5426
}
5421
5427
}
5422
5428
@@ -5452,7 +5458,9 @@ static void frame_setheight(frame_T *curfrp, int height)
5452
5458
if (curfrp->fr_parent == NULL) {
5453
5459
// topframe: can only change the command line
5454
5460
if (height > ROWS_AVAIL) {
5455
-
height = ROWS_AVAIL;
5461
+
// If height is greater than the available space, try to create space for the frame by
5462
+
// reducing 'cmdheight' if possible, while making sure `cmdheight` doesn't go below 1.
5463
+
height = MIN(ROWS_AVAIL + (p_ch - 1), height);
5456
5464
}
5457
5465
if (height > 0) {
5458
5466
frame_new_height(curfrp, height, false, false);
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4