]> git.pld-linux.org Git - packages/vim.git/blob - 7.2.356
- new
[packages/vim.git] / 7.2.356
1 To: vim-dev@vim.org
2 Subject: Patch 7.2.356
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.356
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)
14 Files:      src/fold.c
15
16
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
19 ***************
20 *** 849,859 ****
21       fold_T    *fp;
22   
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
26             && fp->fd_top < bot)
27       {
28         fp->fd_small = MAYBE;
29         ++fp;
30       }
31   
32 --- 849,865 ----
33       fold_T    *fp;
34   
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
38             && fp->fd_top < bot)
39       {
40         fp->fd_small = MAYBE;
41
42 +       /* Not sure if this is the right place to reset fd_flags (suggested by
43 +        * Lech Lorens). */
44 +         if (wp->w_foldinvalid)
45 +             fp->fd_flags = FD_LEVEL;
46
47         ++fp;
48       }
49   
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
52 ***************
53 *** 683,684 ****
54 --- 683,686 ----
55   {   /* Add new patch number below this line */
56 + /**/
57 +     356,
58   /**/
59
60 -- 
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.
65
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    ///
This page took 0.040203 seconds and 3 git commands to generate.