Skip to content

Commit 0e9deef

Browse files
committed
patch 8.1.0450: build failure without the +fold feature
Problem: Build failure without the +fold feature. Solution: Add #ifdef.
1 parent 7701f30 commit 0e9deef

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/screen.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2174,15 +2174,14 @@ win_update(win_T *wp)
21742174
{
21752175
if (wp->w_p_rnu)
21762176
{
2177+
#ifdef FEAT_FOLDING
21772178
// 'relativenumber' set: The text doesn't need to be drawn, but
21782179
// the number column nearly always does.
21792180
fold_count = foldedCount(wp, lnum, &win_foldinfo);
21802181
if (fold_count != 0)
2181-
{
21822182
fold_line(wp, fold_count, &win_foldinfo, lnum, row);
2183-
--fold_count;
2184-
}
21852183
else
2184+
#endif
21862185
(void)win_line(wp, lnum, srow, wp->w_height, TRUE, TRUE);
21872186
}
21882187

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,8 @@ static char *(features[]) =
792792

793793
static int included_patches[] =
794794
{ /* Add new patch number below this line */
795+
/**/
796+
450,
795797
/**/
796798
449,
797799
/**/

0 commit comments

Comments
 (0)