]> granicus.if.org Git - vim/commitdiff
patch 9.0.0643: smoothscroll test fails v9.0.0643
authorBram Moolenaar <Bram@vim.org>
Sun, 2 Oct 2022 21:32:08 +0000 (22:32 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 2 Oct 2022 21:32:08 +0000 (22:32 +0100)
Problem:    Smoothscroll test fails.
Solution:   Check if skipcol changed.

src/normal.c
src/version.c

index 05397380ccc9b8a9ee3b1da3b1207db0983d56cb..773c667a8b515e87d0731dc7742efb9c484e69aa 100644 (file)
@@ -2470,6 +2470,7 @@ nv_scroll_line(cmdarg_T *cap)
 scroll_redraw(int up, long count)
 {
     linenr_T   prev_topline = curwin->w_topline;
+    int                prev_skipcol = curwin->w_skipcol;
 #ifdef FEAT_DIFF
     int                prev_topfill = curwin->w_topfill;
 #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
        // first line of the buffer is already on the screen
        while (curwin->w_topline == prev_topline
+               && curwin->w_skipcol == prev_skipcol
 #ifdef FEAT_DIFF
                && curwin->w_topfill == prev_topfill
 #endif
index 786a866bfd1854b83c7e39a06d4df2587689e81f..a228d74d8a09add5b5cc12a634eaa26e46fe2c91 100644 (file)
@@ -699,6 +699,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    643,
 /**/
     642,
 /**/