1
0
forked from aniani/vim

patch 9.1.0753: Wrong display when typing in diff mode with 'smoothscroll'

Problem:  Wrong display when typing in diff mode with 'smoothscroll'.
Solution: Use adjust_plines_for_skipcol() (zeertzjq).

closes: #15776

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2024-10-01 19:35:47 +02:00
committed by Christian Brabandt
parent 25732435c5
commit 47f8584a80
7 changed files with 119 additions and 3 deletions

View File

@@ -1906,9 +1906,13 @@ win_update(win_T *wp)
// Correct the first entry for filler lines at the top
// when it won't get updated below.
if (wp->w_p_diff && bot_start > 0)
wp->w_lines[0].wl_size =
plines_win_nofill(wp, wp->w_topline, TRUE)
+ wp->w_topfill;
{
int n = plines_win_nofill(wp, wp->w_topline, FALSE)
+ wp->w_topfill - adjust_plines_for_skipcol(wp);
if (n > wp->w_height)
n = wp->w_height;
wp->w_lines[0].wl_size = n;
}
#endif
}
}