fix(window): statusline can silently fail to make room #41201

This commit is contained in:
Barrett Ruth
2026-08-07 05:39:13 -05:00
committed by GitHub
parent a8da01f8e6
commit 0105f15201

View File

@@ -7254,7 +7254,13 @@ static bool resize_frame_for_status(frame_T *fr)
emsg(_(e_noroom));
return false;
} else if (fp != fr) {
frame_setheight(fr, fr->fr_height + 1, false);
int old_height = fr->fr_height;
frame_setheight(fr, old_height + 1, false);
if (fr->fr_height == old_height) {
emsg(_(e_noroom));
return false;
}
win_comp_pos();
} else {
win_new_height(wp, wp->w_height - 1);