commit | 429fcfbf9a9275367fe9441a50a3dcd773497d84 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Apr 14 16:22:04 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Apr 14 16:22:04 2016 +0200 |
tree | 60edefaa455e444f1dbc6f0e38cb7b0d80dd965e | |
parent | 8110a091bc749d8748a20807a724a3af3ca6d509 [diff] [blame] |
patch 7.4.1732 Problem: Folds may close when using autocomplete. (Anmol Sethi) Solution: Increment/decrement disable_fold. (Christian Brabandt, closes #643)
diff --git a/src/fold.c b/src/fold.c index e0b2609..8b9ca35 100644 --- a/src/fold.c +++ b/src/fold.c
@@ -811,6 +811,9 @@ { fold_T *fp; + if (disable_fold_update > 0) + return; + /* Mark all folds from top to bot as maybe-small. */ (void)foldFind(&wp->w_folds, top, &fp); while (fp < (fold_T *)wp->w_folds.ga_data + wp->w_folds.ga_len