summaryrefslogtreecommitdiffstats
path: root/src/fold.c
diff options
context:
space:
mode:
authorBrandon Simmons <simmsbra@gmail.com>2022-05-23 15:33:08 +0100
committerBram Moolenaar <Bram@vim.org>2022-05-23 15:33:08 +0100
commite8c4a64bffbe628a46dc172d04cfc2db6e8dd8b6 (patch)
tree48926207f8f118931908d9b16ccd09168a176fc0 /src/fold.c
parent7e667788150be617aeac42b0d668618ac33ab9da (diff)
patch 8.2.5009: fold may not be closeable after appendingv8.2.5009
Problem: Fold may not be closeable after appending. Solution: Set the fd_small flag to MAYBE. (Brandon Simmons, closes #10471)
Diffstat (limited to 'src/fold.c')
-rw-r--r--src/fold.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fold.c b/src/fold.c
index 26a4a98a76..ee94a979f0 100644
--- a/src/fold.c
+++ b/src/fold.c
@@ -2574,6 +2574,7 @@ foldUpdateIEMSRecurse(
(long)(fp->fd_top - firstlnum));
fp->fd_len += fp->fd_top - firstlnum;
fp->fd_top = firstlnum;
+ fp->fd_small = MAYBE;
fold_changed = TRUE;
}
else if ((flp->start != 0 && lvl == level)