# HG changeset patch # User Bram Moolenaar # Date 1268840712 -3600 # Node ID 5a97d0c03b593699d6e0bb2ea49073dca03153f8 # Parent 85ad197907065fd92f29bf3dcc190779a20aba46 updated for version 7.2.397 Problem: Redundant check for w_lines_valid. Solution: Remove the if. (Lech Lorens) diff --git a/src/fold.c b/src/fold.c --- 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 --- a/src/version.c +++ b/src/version.c @@ -682,6 +682,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 397, +/**/ 396, /**/ 395,