1
0
forked from aniani/vim

patch 9.0.0643: smoothscroll test fails

Problem:    Smoothscroll test fails.
Solution:   Check if skipcol changed.
This commit is contained in:
Bram Moolenaar
2022-10-02 22:32:08 +01:00
parent 693729ae58
commit b34c4b7863
2 changed files with 4 additions and 0 deletions

View File

@@ -2470,6 +2470,7 @@ nv_scroll_line(cmdarg_T *cap)
scroll_redraw(int up, long count) scroll_redraw(int up, long count)
{ {
linenr_T prev_topline = curwin->w_topline; linenr_T prev_topline = curwin->w_topline;
int prev_skipcol = curwin->w_skipcol;
#ifdef FEAT_DIFF #ifdef FEAT_DIFF
int prev_topfill = curwin->w_topfill; int prev_topfill = curwin->w_topfill;
#endif #endif
@@ -2491,6 +2492,7 @@ scroll_redraw(int up, long count)
// we get stuck at one position. Don't move the cursor up if the // we get stuck at one position. Don't move the cursor up if the
// first line of the buffer is already on the screen // first line of the buffer is already on the screen
while (curwin->w_topline == prev_topline while (curwin->w_topline == prev_topline
&& curwin->w_skipcol == prev_skipcol
#ifdef FEAT_DIFF #ifdef FEAT_DIFF
&& curwin->w_topfill == prev_topfill && curwin->w_topfill == prev_topfill
#endif #endif

View File

@@ -699,6 +699,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
643,
/**/ /**/
642, 642,
/**/ /**/