]> git.pld-linux.org Git - packages/vim.git/blame - 7.2.421
- up to 7.2.436
[packages/vim.git] / 7.2.421
CommitLineData
56e91a44
AM
1To: vim-dev@vim.org
2Subject: Patch 7.2.421
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.2.421
11Problem: Folds are sometimes not updated properly and there is no way to
12 force an update.
13Solution: Make "zx" and "zX" recompute folds (suggested by Christian
14 Brabandt)
15Files: src/normal.c
16
17
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
20***************
21*** 4936,4948 ****
22
23 /* "zx": re-apply 'foldlevel' and open folds at the cursor */
24 case 'x': curwin->w_p_fen = TRUE;
25! newFoldLevel(); /* update right now */
26 foldOpenCursor();
27 break;
28
29 /* "zX": undo manual opens/closes, re-apply 'foldlevel' */
30 case 'X': curwin->w_p_fen = TRUE;
31! old_fdl = -1; /* force an update */
32 break;
33
34 /* "zm": fold more */
35--- 4936,4950 ----
36
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 */
41 foldOpenCursor();
42 break;
43
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 */
48 break;
49
50 /* "zm": fold more */
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
53***************
54*** 683,684 ****
55--- 683,686 ----
56 { /* Add new patch number below this line */
57+ /**/
58+ 421,
59 /**/
60
61--
62My sister Cecilia opened a computer store in Hawaii.
63She sells C shells by the seashore.
64
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 ///
This page took 0.034972 seconds and 4 git commands to generate.