1
0
forked from aniani/vim

patch 9.0.0652: 'smoothscroll' not tested with 'number' and "n" in 'cpo'

Problem:    'smoothscroll' not tested with 'number' and "n" in 'cpo'.
Solution:   Add tests, fix uncovered problem.
This commit is contained in:
Bram Moolenaar
2022-10-03 20:01:16 +01:00
parent f269eabc6c
commit b6aab8f44b
11 changed files with 133 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ adjust_plines_for_skipcol(win_T *wp, int n)
{
++off;
int skip = wp->w_skipcol - width;
width -= win_col_off2(wp);
width += win_col_off2(wp);
while (skip >= width)
{
++off;