aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fold.c
diff options
context:
space:
mode:
authorBrandon Simmons <34775764+simmsbra@users.noreply.github.com>2022-05-23 14:13:22 -0500
committerGitHub <noreply@github.com>2022-05-23 20:13:22 +0100
commit37ee800b519c2e071ad6cfe623721521558bb12d (patch)
treec05923c5e6e50201897219965d818db771fcb897 /src/nvim/fold.c
parentc2f4920d3b60123ac8edfda970217282492e8d4b (diff)
downloadrneovim-37ee800b519c2e071ad6cfe623721521558bb12d.tar.gz
rneovim-37ee800b519c2e071ad6cfe623721521558bb12d.tar.bz2
rneovim-37ee800b519c2e071ad6cfe623721521558bb12d.zip
vim-patch:8.2.5009: fold may not be closeable after appending (#18722)
Problem: Fold may not be closeable after appending. Solution: Set the fd_small flag to MAYBE. (Brandon Simmons, closes vim/vim#10471) https://github.com/vim/vim/commit/e8c4a64bffbe628a46dc172d04cfc2db6e8dd8b6
Diffstat (limited to 'src/nvim/fold.c')
-rw-r--r--src/nvim/fold.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/fold.c b/src/nvim/fold.c
index 9c8e92cd00..1bd6cfb0a4 100644
--- a/src/nvim/fold.c
+++ b/src/nvim/fold.c
@@ -2323,6 +2323,7 @@ static linenr_T foldUpdateIEMSRecurse(garray_T *const gap, const int level,
}
fp->fd_len += fp->fd_top - firstlnum;
fp->fd_top = firstlnum;
+ fp->fd_small = kNone;
fold_changed = true;
} else if ((flp->start != 0 && lvl == level)
|| (firstlnum != startlnum)) {