commit | e8c4a64bffbe628a46dc172d04cfc2db6e8dd8b6 | [log] [tgz] |
---|---|---|
author | Brandon Simmons <simmsbra@gmail.com> | Mon May 23 15:33:08 2022 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Mon May 23 15:33:08 2022 +0100 |
tree | 48926207f8f118931908d9b16ccd09168a176fc0 | |
parent | 7e667788150be617aeac42b0d668618ac33ab9da [diff] [blame] |
patch 8.2.5009: fold may not be closeable after appending Problem: Fold may not be closeable after appending. Solution: Set the fd_small flag to MAYBE. (Brandon Simmons, closes #10471)
diff --git a/src/fold.c b/src/fold.c index 26a4a98..ee94a97 100644 --- a/src/fold.c +++ b/src/fold.c
@@ -2574,6 +2574,7 @@ (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)