Mercurial > vim
diff src/edit.c @ 11073:d2178a6cc9f3 v8.0.0425
patch 8.0.0425: build errors when building without folding
commit https://github.com/vim/vim/commit/a6c07603ca2fa98a4184f5fd5ab021adcf5156b2
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 5 21:18:27 2017 +0100
patch 8.0.0425: build errors when building without folding
Problem: Build errors when building without folding.
Solution: Add #ifdefs. (John Marriott)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 05 Mar 2017 21:30:05 +0100 |
parents | 35d4975a5bb5 |
children | 7c7e496e625d |
line wrap: on
line diff
--- 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 */