From 0105f15201743fe80a9af105c2117510d3b6fdf8 Mon Sep 17 00:00:00 2001 From: Barrett Ruth <62671086+barrettruth@users.noreply.github.com> Date: Fri, 7 Aug 2026 05:39:13 -0500 Subject: [PATCH] fix(window): statusline can silently fail to make room #41201 --- src/nvim/window.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/nvim/window.c b/src/nvim/window.c index 18cb9cc48e..a1e712c2cd 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -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);