ven, 19 Feb 2010, Keyan skribis:
> hi,
>
> thanks, now i know what happened, but not how to solve it :)
>
> do i have to change some setting? i am not very familiar with folds.
I just revert that patch. Since you also use git, copy the patch.txt
to vim git repo. type
$patch -p1 <patch.txt
$git commit -a -m 'revert foldmethod'
and compile vim again.
--
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
diff --git a/src/fold.c b/src/fold.c
index ff1139d..405a6ef 100644
--- a/src/fold.c
+++ b/src/fold.c
@@ -849,17 +849,11 @@ foldUpdate(wp, top, bot)
fold_T *fp;
/* Mark all folds from top to bot as maybe-small. */
- (void)foldFind(&curwin->w_folds, top, &fp);
+ (void)foldFind(&curwin->w_folds, curwin->w_cursor.lnum, &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;
}