patch 9.1.0380: Calculating line height for unnecessary amount of lines
Problem: Calculating line height for unnecessary amount of lines with
half-page scrolling (zhscn, after 9.1.0280)
Solution: Replace "limit_winheight" argument with higher resolution
"max" argument to which to limit the calculated line height
in plines_m_win() to (Luuk van Baal)
fixes: #14650
closes: #14652
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
f351fd8292
commit
32d701f51b
@ -1781,7 +1781,7 @@ win_update(win_T *wp)
|
||||
if (j < wp->w_height - 2) // not too far off
|
||||
{
|
||||
i = plines_m_win(wp, wp->w_topline, wp->w_lines[0].wl_lnum - 1,
|
||||
TRUE);
|
||||
wp->w_height);
|
||||
#ifdef FEAT_DIFF
|
||||
// insert extra lines for previously invisible filler lines
|
||||
if (wp->w_lines[0].wl_lnum != wp->w_topline)
|
||||
|
||||
Reference in New Issue
Block a user