summaryrefslogtreecommitdiffstats
path: root/src/drawscreen.c
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2024-04-28 16:24:02 +0200
committerChristian Brabandt <cb@256bit.org>2024-04-28 16:24:02 +0200
commit32d701f51b1ed2834071a2c5031a300936beda13 (patch)
treec1978e5254b508023cfbe87275f0a7e126768709 /src/drawscreen.c
parentf351fd82920427b33a160cab9fdbc35ac1deb681 (diff)
patch 9.1.0380: Calculating line height for unnecessary amount of linesv9.1.0380
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>
Diffstat (limited to 'src/drawscreen.c')
-rw-r--r--src/drawscreen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drawscreen.c b/src/drawscreen.c
index f8818ff1aa..9096c28dfe 100644
--- a/src/drawscreen.c
+++ b/src/drawscreen.c
@@ -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)