diff options
Diffstat (limited to 'src/fold.c')
-rw-r--r-- | src/fold.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fold.c b/src/fold.c index e0b2609d98..8b9ca35ebf 100644 --- a/src/fold.c +++ b/src/fold.c @@ -811,6 +811,9 @@ foldUpdate(win_T *wp, linenr_T top, linenr_T bot) { 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 |