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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user