Mercurial > vim
diff src/drawscreen.c @ 35073:80240c27c4ff v9.1.0380
patch 9.1.0380: Calculating line height for unnecessary amount of lines
Commit: https://github.com/vim/vim/commit/32d701f51b1ed2834071a2c5031a300936beda13
Author: Luuk van Baal <luukvbaal@gmail.com>
Date: Sun Apr 28 16:24:02 2024 +0200
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>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 28 Apr 2024 16:30:12 +0200 |
parents | fdd232ab72ea |
children |
line wrap: on
line diff
--- 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)