From b067d78042db25aa5031ec4d38494eed4f154230 Mon Sep 17 00:00:00 2001 From: h-east Date: Tue, 3 Mar 2026 21:37:01 +0900 Subject: [PATCH] Fix: missing FEAT_MENU guard for w_winbar_height in window.c --- src/window.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/window.c b/src/window.c index bfca2c345ae214..820728ea02551a 100644 --- a/src/window.c +++ b/src/window.c @@ -7657,22 +7657,21 @@ frame_change_statusline_height_rec(frame_T *frp, bool actual_change) if (wp->w_height > 0 && wp->w_status_height > 0) { + int win_free_height = frp->fr_height - WINBAR_HEIGHT(wp); + if (actual_change) { wp->w_status_height = stlo_mh; - if (wp->w_status_height > frp->fr_height - wp->w_winbar_height - - p_wmh) + if (wp->w_status_height > win_free_height - p_wmh) { - wp->w_status_height = frp->fr_height - wp->w_winbar_height - - p_wmh; + wp->w_status_height = win_free_height - p_wmh; } - win_new_height(wp, frp->fr_height - wp->w_status_height - - wp->w_winbar_height); + win_new_height(wp, win_free_height - wp->w_status_height); } else { - if (frp->fr_height - wp->w_winbar_height - p_wmh < stlh_effort) - stlh_effort = frp->fr_height - wp->w_winbar_height - p_wmh; + if (win_free_height - p_wmh < stlh_effort) + stlh_effort = win_free_height - p_wmh; } } }