0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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:
Bram Moolenaar
2017-03-05 21:18:27 +01:00
parent f7e894dfb6
commit a6c07603ca
5 changed files with 15 additions and 7 deletions

View File

@@ -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 */