mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 07:58:35 +00:00
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:

committed by
Justin M. Keyes

parent
937c78fe2e
commit
02d935729f
@@ -217,7 +217,7 @@ static int included_patches[] = {
|
|||||||
//304,
|
//304,
|
||||||
//303,
|
//303,
|
||||||
//302,
|
//302,
|
||||||
//301,
|
301,
|
||||||
//300,
|
//300,
|
||||||
//299,
|
//299,
|
||||||
298,
|
298,
|
||||||
|
@@ -4560,7 +4560,7 @@ void win_new_height(win_T *wp, int height)
|
|||||||
hasFoldingWin(wp, lnum, NULL, &lnum, TRUE, NULL);
|
hasFoldingWin(wp, lnum, NULL, &lnum, TRUE, NULL);
|
||||||
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;
|
||||||
wp->w_wrow -= sline;
|
wp->w_wrow -= sline;
|
||||||
|
Reference in New Issue
Block a user