4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Folds are sometimes not updated properly and there is no way to
13 Solution: Make "zx" and "zX" recompute folds (suggested by Christian
18 *** ../vim-7.2.420/src/normal.c 2010-05-07 15:51:59.000000000 +0200
19 --- src/normal.c 2010-05-13 16:43:05.000000000 +0200
23 /* "zx": re-apply 'foldlevel' and open folds at the cursor */
24 case 'x': curwin->w_p_fen = TRUE;
25 ! newFoldLevel(); /* update right now */
29 /* "zX": undo manual opens/closes, re-apply 'foldlevel' */
30 case 'X': curwin->w_p_fen = TRUE;
31 ! old_fdl = -1; /* force an update */
37 /* "zx": re-apply 'foldlevel' and open folds at the cursor */
38 case 'x': curwin->w_p_fen = TRUE;
39 ! curwin->w_foldinvalid = TRUE; /* recompute folds */
40 ! newFoldLevel(); /* update right now */
44 /* "zX": undo manual opens/closes, re-apply 'foldlevel' */
45 case 'X': curwin->w_p_fen = TRUE;
46 ! curwin->w_foldinvalid = TRUE; /* recompute folds */
47 ! old_fdl = -1; /* force an update */
51 *** ../vim-7.2.420/src/version.c 2010-05-13 16:46:16.000000000 +0200
52 --- src/version.c 2010-05-13 17:33:34.000000000 +0200
56 { /* Add new patch number below this line */
62 My sister Cecilia opened a computer store in Hawaii.
63 She sells C shells by the seashore.
65 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
66 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
67 \\\ download, build and distribute -- http://www.A-A-P.org ///
68 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///