0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 9.0.1512: inserting lines when scrolling with 'smoothscroll' set

Problem:    Inserting lines when scrolling with 'smoothscroll' set.
Solution:   Adjust line height computation for w_skipcol. (Luuk van Baal,
            closes #12350)
This commit is contained in:
Luuk van Baal
2023-05-06 12:40:15 +01:00
committed by Bram Moolenaar
parent 12e7a1fe75
commit c8502f9b88
6 changed files with 46 additions and 6 deletions

View File

@@ -2327,8 +2327,14 @@ win_update(win_T *wp)
{
#ifdef FEAT_DIFF
if (l == wp->w_topline)
new_rows += plines_win_nofill(wp, l, TRUE)
+ wp->w_topfill;
{
int n = plines_win_nofill(wp, l, FALSE)
+ wp->w_topfill;
n = adjust_plines_for_skipcol(wp, n);
if (n > wp->w_height)
n = wp->w_height;
new_rows += n;
}
else
#endif
new_rows += plines_win(wp, l, TRUE);