Permalink
Browse files

updated for version 7.4.301

Problem:    Still a scrolling problem when loading a session file.
Solution:   Fix off-by-one mistake. (Nobuhiro Takasaki)
  • Loading branch information...
brammool committed May 22, 2014
1 parent 7b129a5 commit b42970535c205baede141c8be2fab0f8cc4e16d9
Showing with 3 additions and 1 deletion.
  1. +2 −0 src/version.c
  2. +1 −1 src/window.c
@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
301,
/**/
300,
/**/
@@ -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;

0 comments on commit b429705

Please sign in to comment.