From: Bram Moolenaar Date: Thu, 22 May 2014 13:17:29 +0000 (+0200) Subject: updated for version 7.4.301 X-Git-Tag: v7.4.301 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b42970535c205baede141c8be2fab0f8cc4e16d9;p=vim 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 index 0930a7b4d..7f58182fd 100644 --- a/src/version.c +++ b/src/version.c @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 301, /**/ 300, /**/ diff --git a/src/window.c b/src/window.c index 485f7ef04..cea7c402d 100644 --- 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;