Skip to content

Commit

Permalink
updated for version 7.4.309
Browse files Browse the repository at this point in the history
Problem:    When increasing the size of the lower window, the upper window
            jumps back to the top. (Ron Aaron)
Solution:   Change setting the topline. (Nobuhiro Takasaki)
  • Loading branch information
brammool committed May 28, 2014
1 parent 846a2ff commit dd0402a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
309,
/**/
308,
/**/
Expand Down
8 changes: 5 additions & 3 deletions src/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -5710,8 +5710,9 @@ win_new_height(wp, height)
--wp->w_wrow;
}
}
set_topline(wp, lnum);
}
else
else if (sline > 0)
{
while (sline > 0 && lnum > 1)
{
Expand Down Expand Up @@ -5748,14 +5749,15 @@ 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;
wp->w_wrow -= sline;
}

set_topline(wp, lnum);
}
set_topline(wp, lnum);
}

if (wp == curwin)
Expand Down

0 comments on commit dd0402a

Please sign in to comment.