vim-patch:9.1.0753: Wrong display when typing in diff mode with 'smoothscroll' (#30614)

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

closes: vim/vim#15776

47f8584a80
This commit is contained in:
zeertzjq
2024-10-02 06:55:43 +08:00
committed by GitHub
parent 5331f87f61
commit 0e484c2041
3 changed files with 136 additions and 2 deletions

View File

@@ -1805,8 +1805,10 @@ static void win_update(win_T *wp)
// Correct the first entry for filler lines at the top
// when it won't get updated below.
if (win_may_fill(wp) && bot_start > 0) {
wp->w_lines[0].wl_size = (uint16_t)(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);
n = MIN(n, wp->w_height_inner);
wp->w_lines[0].wl_size = (uint16_t)n;
}
}
}