]>
Commit | Line | Data |
---|---|---|
56e91a44 AM |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.2.421 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=UTF-8 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.2.421 | |
11 | Problem: Folds are sometimes not updated properly and there is no way to | |
12 | force an update. | |
13 | Solution: Make "zx" and "zX" recompute folds (suggested by Christian | |
14 | Brabandt) | |
15 | Files: 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 | -- | |
62 | My sister Cecilia opened a computer store in Hawaii. | |
63 | She 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 /// |