]> granicus.if.org Git - vim/commitdiff
updated for version 7.2.397 v7.2.397
authorBram Moolenaar <Bram@vim.org>
Wed, 17 Mar 2010 15:45:12 +0000 (16:45 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 17 Mar 2010 15:45:12 +0000 (16:45 +0100)
Problem:    Redundant check for w_lines_valid.
Solution:   Remove the if.  (Lech Lorens)

src/fold.c
src/version.c

index a23a35c2aadc6a7f0274909b62dfebe94313af95..c88e8f793b3fefafcdaa864242821b8fd398772d 100644 (file)
@@ -1053,15 +1053,14 @@ find_wl_entry(win, lnum)
 {
     int                i;
 
-    if (win->w_lines_valid > 0)
-       for (i = 0; i < win->w_lines_valid; ++i)
-           if (win->w_lines[i].wl_valid)
-           {
-               if (lnum < win->w_lines[i].wl_lnum)
-                   return -1;
-               if (lnum <= win->w_lines[i].wl_lastlnum)
-                   return i;
-           }
+    for (i = 0; i < win->w_lines_valid; ++i)
+       if (win->w_lines[i].wl_valid)
+       {
+           if (lnum < win->w_lines[i].wl_lnum)
+               return -1;
+           if (lnum <= win->w_lines[i].wl_lastlnum)
+               return i;
+       }
     return -1;
 }
 
index 939a11093a6ed9a9806adde6fd8bf5fc65ca19a2..163c85263949ad0c0e0186e150aebcce5b3a8d1f 100644 (file)
@@ -681,6 +681,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    397,
 /**/
     396,
 /**/