summaryrefslogtreecommitdiff
path: root/src/option.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-05 21:18:27 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-05 21:18:27 +0100
commita6c07603ca2fa98a4184f5fd5ab021adcf5156b2 (patch)
treefd78ab3e8ea373d8bf6b3f4e398e71f03681fee9 /src/option.c
parentf7e894dfb60b6fd8f426aa3da1452803f8de010c (diff)
downloadvim-git-a6c07603ca2fa98a4184f5fd5ab021adcf5156b2.tar.gz
patch 8.0.0425: build errors when building without foldingv8.0.0425
Problem: Build errors when building without folding. Solution: Add #ifdefs. (John Marriott)
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/option.c b/src/option.c
index d4e760b89..b0baf5018 100644
--- a/src/option.c
+++ b/src/option.c
@@ -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
}