mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00
vim-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 vim/vim#12350)
c8502f9b88
This commit is contained in:
@@ -2101,7 +2101,12 @@ static void win_update(win_T *wp, DecorProviders *providers)
|
||||
if (hasFoldingWin(wp, l, NULL, &l, true, NULL)) {
|
||||
new_rows++;
|
||||
} else 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_inner) {
|
||||
n = wp->w_height_inner;
|
||||
}
|
||||
new_rows += n;
|
||||
} else {
|
||||
new_rows += plines_win(wp, l, true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user