Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
28973:8ed9b1009bfb | 28974:65946c949965 |
---|---|
2572 (long)(firstlnum - fp->fd_top - 1), | 2572 (long)(firstlnum - fp->fd_top - 1), |
2573 (linenr_T)MAXLNUM, | 2573 (linenr_T)MAXLNUM, |
2574 (long)(fp->fd_top - firstlnum)); | 2574 (long)(fp->fd_top - firstlnum)); |
2575 fp->fd_len += fp->fd_top - firstlnum; | 2575 fp->fd_len += fp->fd_top - firstlnum; |
2576 fp->fd_top = firstlnum; | 2576 fp->fd_top = firstlnum; |
2577 fp->fd_small = MAYBE; | |
2577 fold_changed = TRUE; | 2578 fold_changed = TRUE; |
2578 } | 2579 } |
2579 else if ((flp->start != 0 && lvl == level) | 2580 else if ((flp->start != 0 && lvl == level) |
2580 || firstlnum != startlnum) | 2581 || firstlnum != startlnum) |
2581 { | 2582 { |