]> git.pld-linux.org Git - packages/vim.git/blame - 7.2.397
- new
[packages/vim.git] / 7.2.397
CommitLineData
d1b4bd6a
ER
1To: vim-dev@vim.org
2Subject: Patch 7.2.397
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.397
11Problem: Redundant check for w_lines_valid.
12Solution: Remove the if. (Lech Lorens)
13Files: 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--
61Did 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.090239 seconds and 4 git commands to generate.