vim-patch:7.4.301 #816

Problem:    Still a scrolling problem when loading a session file.
Solution:   Fix off-by-one mistake. (Nobuhiro Takasaki)

https://code.google.com/p/vim/source/detail?r=8cb42aa3c4957a543e5dffe307475dbab969612f
This commit is contained in:
oni-link 2014-05-22 16:19:47 +02:00 committed by Justin M. Keyes
parent 937c78fe2e
commit 02d935729f
2 changed files with 2 additions and 2 deletions

View File

@ -217,7 +217,7 @@ static int included_patches[] = {
//304,
//303,
//302,
//301,
301,
//300,
//299,
298,

View File

@ -4560,7 +4560,7 @@ void win_new_height(win_T *wp, int height)
hasFoldingWin(wp, lnum, NULL, &lnum, TRUE, NULL);
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;