From a6c07603ca2fa98a4184f5fd5ab021adcf5156b2 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 5 Mar 2017 21:18:27 +0100 Subject: patch 8.0.0425: build errors when building without folding Problem: Build errors when building without folding. Solution: Add #ifdefs. (John Marriott) --- src/edit.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/edit.c') diff --git a/src/edit.c b/src/edit.c index 25896f3d3..6621515b5 100644 --- a/src/edit.c +++ b/src/edit.c @@ -541,8 +541,8 @@ edit( /* * Handle restarting Insert mode. - * Don't do this for "CTRL-O ." (repeat an insert): we get here with - * restart_edit non-zero, and something in the stuff buffer. + * Don't do this for "CTRL-O ." (repeat an insert): In that case we get + * here with something in the stuff buffer. */ if (restart_edit != 0 && stuff_empty()) { @@ -1453,10 +1453,14 @@ doESCkey: docomplete: compl_busy = TRUE; +#ifdef FEAT_FOLDING disable_fold_update++; /* don't redraw folds here */ +#endif if (ins_complete(c, TRUE) == FAIL) compl_cont_status = 0; +#ifdef FEAT_FOLDING disable_fold_update--; +#endif compl_busy = FALSE; break; #endif /* FEAT_INS_EXPAND */ -- cgit v1.2.1