]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.301 v7.4.301
authorBram Moolenaar <Bram@vim.org>
Thu, 22 May 2014 13:17:29 +0000 (15:17 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 22 May 2014 13:17:29 +0000 (15:17 +0200)
Problem:    Still a scrolling problem when loading a session file.
Solution:   Fix off-by-one mistake. (Nobuhiro Takasaki)

src/version.c
src/window.c

index 0930a7b4d0613c7788e5a5283013e39348c53f78..7f58182fd0db44db0bc2adf01c137c50783f6691 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    301,
 /**/
     300,
 /**/
index 485f7ef04c847554f944bdd62dc7e799024faa2d..cea7c402d947d5c8aa161f5416fb438f46dc9f04 100644 (file)
@@ -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;