Skip to content

Commit a6c0760

Browse files
committed
patch 8.0.0425: build errors when building without folding
Problem: Build errors when building without folding. Solution: Add #ifdefs. (John Marriott)
1 parent f7e894d commit a6c0760

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

src/diff.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2616,7 +2616,6 @@ diff_get_corresponding_line(buf_T *buf1, linenr_T lnum1)
26162616
return lnum;
26172617
}
26182618

2619-
#if defined(FEAT_FOLDING) || defined(PROTO)
26202619
/*
26212620
* For line "lnum" in the current window find the equivalent lnum in window
26222621
* "wp", compensating for inserted/deleted lines.
@@ -2656,6 +2655,5 @@ diff_lnum_win(linenr_T lnum, win_T *wp)
26562655
n = dp->df_lnum[i] + dp->df_count[i];
26572656
return n;
26582657
}
2659-
#endif
26602658

26612659
#endif /* FEAT_DIFF */

src/edit.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,8 @@ edit(
541541

542542
/*
543543
* Handle restarting Insert mode.
544-
* Don't do this for "CTRL-O ." (repeat an insert): we get here with
545-
* restart_edit non-zero, and something in the stuff buffer.
544+
* Don't do this for "CTRL-O ." (repeat an insert): In that case we get
545+
* here with something in the stuff buffer.
546546
*/
547547
if (restart_edit != 0 && stuff_empty())
548548
{
@@ -1453,10 +1453,14 @@ edit(
14531453

14541454
docomplete:
14551455
compl_busy = TRUE;
1456+
#ifdef FEAT_FOLDING
14561457
disable_fold_update++; /* don't redraw folds here */
1458+
#endif
14571459
if (ins_complete(c, TRUE) == FAIL)
14581460
compl_cont_status = 0;
1461+
#ifdef FEAT_FOLDING
14591462
disable_fold_update--;
1463+
#endif
14601464
compl_busy = FALSE;
14611465
break;
14621466
#endif /* FEAT_INS_EXPAND */

src/option.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4535,8 +4535,11 @@ do_set(
45354535
* "wrap" gets set. */
45364536
if (curwin->w_p_diff
45374537
&& opt_idx >= 0 /* shut up coverity warning */
4538-
&& (options[opt_idx].indir == PV_FDM
4539-
|| options[opt_idx].indir == PV_WRAP))
4538+
&& (
4539+
#ifdef FEAT_FOLDING
4540+
options[opt_idx].indir == PV_FDM ||
4541+
#endif
4542+
options[opt_idx].indir == PV_WRAP))
45404543
goto skip;
45414544
#endif
45424545
}

src/syntax.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,11 +1183,12 @@ syn_stack_free_block(synblock_T *block)
11831183
void
11841184
syn_stack_free_all(synblock_T *block)
11851185
{
1186+
#ifdef FEAT_FOLDING
11861187
win_T *wp;
1188+
#endif
11871189

11881190
syn_stack_free_block(block);
11891191

1190-
11911192
#ifdef FEAT_FOLDING
11921193
/* When using "syntax" fold method, must update all folds. */
11931194
FOR_ALL_WINDOWS(wp)

src/version.c

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

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
425,
767769
/**/
768770
424,
769771
/**/

0 commit comments

Comments
 (0)