diff options
Diffstat (limited to 'src/edit.c')
-rw-r--r-- | src/edit.c | 8 |
1 files changed, 6 insertions, 2 deletions
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 */ |