forked from aniani/vim
patch 9.1.0294: Text height function does not respect it's argument
Problem: plines_m_win() does not take into account it's "limit_winheight"
argument for filler lines below the last line of the buffer.
(after v9.1.0280)
Solution: Check window height when "limit_winheight" is TRUE.
(Luuk van Baal)
closes: #14449
Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
41208884b8
commit
08b0f632c1
@@ -3210,7 +3210,7 @@ pagescroll(int dir, long count, int half)
|
||||
{
|
||||
int n = plines_correct_topline(curwin, curwin->w_topline, FALSE);
|
||||
if (n - count < curwin->w_height && curwin->w_topline < buflen)
|
||||
n += plines_m_win(curwin, curwin->w_topline + 1, buflen, TRUE);
|
||||
n += plines_m_win(curwin, curwin->w_topline + 1, buflen, FALSE);
|
||||
if (n - count < curwin->w_height)
|
||||
count = n - curwin->w_height;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user