mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user