0
0
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:
Bram Moolenaar
2014-05-22 15:17:29 +02:00
parent 7b129a5ac4
commit b42970535c
2 changed files with 3 additions and 1 deletions

View File

@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
301,
/**/ /**/
300, 300,
/**/ /**/

View File

@@ -5748,7 +5748,7 @@ win_new_height(wp, height)
lnum++; lnum++;
wp->w_wrow -= line_size + sline; wp->w_wrow -= line_size + sline;
} }
else if (sline > 0) else if (sline >= 0)
{ {
/* First line of file reached, use that as topline. */ /* First line of file reached, use that as topline. */
lnum = 1; lnum = 1;