patch 9.2.0148: Compile error when FEAT_DIFF is not defined

Problem:  Compile error when FEAT_DIFF is not defined (after v9.2.0144)
Solution: Add ifdefs around those lines (John Marriott).

related: #19622

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
John Marriott
2026-03-12 21:27:58 +00:00
committed by Christian Brabandt
parent 3697c6b020
commit 9f983a9560
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
148,
/**/
147,
/**/
+4
View File
@@ -7748,10 +7748,14 @@ frame_change_statusline_height_rec(frame_T *frp, int global_stlh)
// and let update_topline() handle cursor visibility for
// curwin during redraw.
linenr_T saved_topline = wp->w_topline;
# ifdef FEAT_DIFF
int saved_topfill = wp->w_topfill;
# endif
win_new_height(wp, win_free_height - wp->w_status_height);
wp->w_topline = saved_topline;
# ifdef FEAT_DIFF
wp->w_topfill = saved_topfill;
# endif
wp->w_valid &= ~(VALID_WROW | VALID_CROW
| VALID_BOTLINE | VALID_BOTLINE_AP);
}