summaryrefslogtreecommitdiffstats
path: root/src/edit.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/edit.c
parentf7e894dfb60b6fd8f426aa3da1452803f8de010c (diff)
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/edit.c')
-rw-r--r--src/edit.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/edit.c b/src/edit.c
index 25896f3d3c..6621515b57 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 */