diff src/fold.c @ 28974:65946c949965 v8.2.5009

patch 8.2.5009: fold may not be closeable after appending Commit: https://github.com/vim/vim/commit/e8c4a64bffbe628a46dc172d04cfc2db6e8dd8b6 Author: Brandon Simmons <simmsbra@gmail.com> Date: Mon May 23 15:33:08 2022 +0100 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 https://github.com/vim/vim/issues/10471)
author Bram Moolenaar <Bram@vim.org>
date Mon, 23 May 2022 16:45:03 +0200
parents 2ac9beab876c
children 89e1d67814a9
line wrap: on
line diff
--- 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)