mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07: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:
parent
937c78fe2e
commit
02d935729f
@ -217,7 +217,7 @@ static int included_patches[] = {
|
||||
//304,
|
||||
//303,
|
||||
//302,
|
||||
//301,
|
||||
301,
|
||||
//300,
|
||||
//299,
|
||||
298,
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user