1
0
forked from aniani/vim

patch 8.0.0425: build errors when building without folding

Problem:    Build errors when building without folding.
Solution:   Add #ifdefs. (John Marriott)
This commit is contained in:
Bram Moolenaar
2017-03-05 21:18:27 +01:00
parent f7e894dfb6
commit a6c07603ca
5 changed files with 15 additions and 7 deletions

View File

@@ -4535,8 +4535,11 @@ do_set(
* "wrap" gets set. */
if (curwin->w_p_diff
&& opt_idx >= 0 /* shut up coverity warning */
&& (options[opt_idx].indir == PV_FDM
|| options[opt_idx].indir == PV_WRAP))
&& (
#ifdef FEAT_FOLDING
options[opt_idx].indir == PV_FDM ||
#endif
options[opt_idx].indir == PV_WRAP))
goto skip;
#endif
}