i applied the patch, but the behaviour did not change.
regards,
keyan
On 19 Feb 2010, at 05:53, bill lam wrote:
> ĵaŭ, 18 Feb 2010, björn skribis:
>> What is version 7.2-356? Are you using a snapshot or are you building
>> from the source? If you are building from the source can you figure
>> out which commit introduced thr problem? (It would most likely be
>> when the runtime files were updated.)
>>
>
> This patch,
>
> commit 0eba6d6411c73535a29d72444a8e7d1e831a2528
> Author: Bram Moolenaar <Bram@moolenaar.net>
> Date: Wed Feb 3 18:12:34 2010 +0000
>
> [7.2.356] When 'foldmethod' is changed not all folds are closed as expected.
>
> Problem: When 'foldmethod' is changed not all folds are closed as expected.
>
> Solution: In foldUpdate() correct the start position and reset fd_flags when
> w_foldinvalid is set. (Lech Lorens)
>
> Patch 7.2.356
>
> diff --git a/src/fold.c b/src/fold.c
> index 405a6ef..ff1139d 100644
> --- a/src/fold.c
> +++ b/src/fold.c
> @@ -849,11 +849,17 @@ foldUpdate(wp, top, bot)
> fold_T *fp;
>
> /* Mark all folds from top to bot as maybe-small. */
> - (void)foldFind(&curwin->w_folds, curwin->w_cursor.lnum, &fp);
> + (void)foldFind(&curwin->w_folds, top, &fp);
> while (fp < (fold_T *)curwin->w_folds.ga_data + curwin->w_folds.ga_len
> && fp->fd_top < bot)
> {
> fp->fd_small = MAYBE;
> +
> + /* Not sure if this is the right place to reset fd_flags (suggested by
> + * Lech Lorens). */
> + if (wp->w_foldinvalid)
> + fp->fd_flags = FD_LEVEL;
> +
> ++fp;
> }
>
> diff --git a/src/version.c b/src/version.c
> index 91ae2ec..b7aacc1 100644
> --- a/src/version.c
> +++ b/src/version.c
> @@ -682,6 +682,8 @@ static char *(features[]) =
> static int included_patches[] =
> { /* Add new patch number below this line */
> /**/
> + 356,
> +/**/
> 355,
> /**/
> 354,
> --
> regards,
> ====================================================
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
>
> --
> You received this message from the "vim_use" maillist.
> For more information, visit http://www.vim.org/maillist.php
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment