mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
updated for version 7.4.301
Problem: Still a scrolling problem when loading a session file. Solution: Fix off-by-one mistake. (Nobuhiro Takasaki)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user