]> git.pld-linux.org Git - packages/vim.git/blob - 7.2.397
- new
[packages/vim.git] / 7.2.397
1 To: vim-dev@vim.org
2 Subject: Patch 7.2.397
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.397
11 Problem:    Redundant check for w_lines_valid.
12 Solution:   Remove the if.  (Lech Lorens)
13 Files:      src/fold.c
14
15
16 *** ../vim-7.2.396/src/fold.c   2010-02-24 14:34:10.000000000 +0100
17 --- src/fold.c  2010-03-17 13:03:00.000000000 +0100
18 ***************
19 *** 1053,1067 ****
20   {
21       int               i;
22   
23 !     if (win->w_lines_valid > 0)
24 !       for (i = 0; i < win->w_lines_valid; ++i)
25 !           if (win->w_lines[i].wl_valid)
26 !           {
27 !               if (lnum < win->w_lines[i].wl_lnum)
28 !                   return -1;
29 !               if (lnum <= win->w_lines[i].wl_lastlnum)
30 !                   return i;
31 !           }
32       return -1;
33   }
34   
35 --- 1053,1066 ----
36   {
37       int               i;
38   
39 !     for (i = 0; i < win->w_lines_valid; ++i)
40 !       if (win->w_lines[i].wl_valid)
41 !       {
42 !           if (lnum < win->w_lines[i].wl_lnum)
43 !               return -1;
44 !           if (lnum <= win->w_lines[i].wl_lastlnum)
45 !               return i;
46 !       }
47       return -1;
48   }
49   
50 *** ../vim-7.2.396/src/version.c        2010-03-17 14:47:56.000000000 +0100
51 --- src/version.c       2010-03-17 16:43:34.000000000 +0100
52 ***************
53 *** 683,684 ****
54 --- 683,686 ----
55   {   /* Add new patch number below this line */
56 + /**/
57 +     397,
58   /**/
59
60 -- 
61 Did you ever stop to think...  and forget to start again?
62                                   -- Steven Wright
63
64  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
65 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
66 \\\        download, build and distribute -- http://www.A-A-P.org        ///
67  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
This page took 0.109473 seconds and 3 git commands to generate.