From 08bb82e8c59a5b8c470aad02d3fc15e18254a049 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 17 Mar 2010 16:45:12 +0100 Subject: updated for version 7.2.397 Problem: Redundant check for w_lines_valid. Solution: Remove the if. (Lech Lorens) --- src/fold.c | 17 ++++++++--------- src/version.c | 2 ++ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/fold.c b/src/fold.c index a23a35c2aa..c88e8f793b 100644 --- a/src/fold.c +++ b/src/fold.c @@ -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; } diff --git a/src/version.c b/src/version.c index 939a11093a..163c852639 100644 --- a/src/version.c +++ b/src/version.c @@ -681,6 +681,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 397, /**/ 396, /**/ -- cgit v1.2.3