# HG changeset patch # User Bram Moolenaar # Date 1400764649 -7200 # Node ID 8cb42aa3c4957a543e5dffe307475dbab969612f # Parent 0c43318e476a60a917e2e2ef173fb05b9961f473 updated for version 7.4.301 Problem: Still a scrolling problem when loading a session file. Solution: Fix off-by-one mistake. (Nobuhiro Takasaki) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -735,6 +735,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 301, +/**/ 300, /**/ 299, diff --git a/src/window.c b/src/window.c --- a/src/window.c +++ b/src/window.c @@ -5748,7 +5748,7 @@ win_new_height(wp, height) lnum++; wp->w_wrow -= line_size + sline; } - else if (sline > 0) + else if (sline >= 0) { /* First line of file reached, use that as topline. */ lnum = 1;