changeset 5919:8cb42aa3c495 v7.4.301

updated for version 7.4.301 Problem: Still a scrolling problem when loading a session file. Solution: Fix off-by-one mistake. (Nobuhiro Takasaki)
author Bram Moolenaar <bram@vim.org>
date Thu, 22 May 2014 15:17:29 +0200
parents 0c43318e476a
children 822f24a92ea8
files src/version.c src/window.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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,
--- 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;