4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: When 'foldmethod' is changed not all folds are closed as expected.
12 Solution: In foldUpdate() correct the start position and reset fd_flags when
13 w_foldinvalid is set. (Lech Lorens)
17 *** ../vim-7.2.355/src/fold.c 2010-01-19 17:24:20.000000000 +0100
18 --- src/fold.c 2010-02-03 18:08:11.000000000 +0100
23 /* Mark all folds from top to bot as maybe-small. */
24 ! (void)foldFind(&curwin->w_folds, curwin->w_cursor.lnum, &fp);
25 while (fp < (fold_T *)curwin->w_folds.ga_data + curwin->w_folds.ga_len
35 /* Mark all folds from top to bot as maybe-small. */
36 ! (void)foldFind(&curwin->w_folds, top, &fp);
37 while (fp < (fold_T *)curwin->w_folds.ga_data + curwin->w_folds.ga_len
42 + /* Not sure if this is the right place to reset fd_flags (suggested by
44 + if (wp->w_foldinvalid)
45 + fp->fd_flags = FD_LEVEL;
50 *** ../vim-7.2.355/src/version.c 2010-02-03 17:42:59.000000000 +0100
51 --- src/version.c 2010-02-03 18:12:34.000000000 +0100
55 { /* Add new patch number below this line */
61 hundred-and-one symptoms of being an internet addict:
62 190. You quickly hand over your wallet, leather jacket, and car keys
63 during a mugging, then proceed to beat the crap out of your
64 assailant when he asks for your laptop.
66 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
67 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
68 \\\ download, build and distribute -- http://www.A-A-P.org ///
69 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///