]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.2005: partially revert patch v9.0.1997 v9.0.2005
authorChristian Brabandt <cb@256bit.org>
Mon, 9 Oct 2023 15:52:14 +0000 (17:52 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 9 Oct 2023 15:55:02 +0000 (17:55 +0200)
Problem:  partially revert patch v9.0.1997
Solution: add a comment, to make clear it's not used

related: #13288

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/move.c
src/version.c

index a0d3a6014a9d934504bbb71576b926d956149c7e..42878e4ad9c2879a2a417434c86290ccf7a9067c 100644 (file)
@@ -1753,7 +1753,12 @@ scrolldown(
            ++row;
        }
        if (col > width2 && width2 > 0)
+       {
            row += col / width2;
+           // even so col is not used anymore,
+           // make sure it is correct, just in case
+           col = col % width2;
+       }
        if (row >= curwin->w_height)
        {
            curwin->w_curswant = curwin->w_virtcol
@@ -1986,7 +1991,12 @@ adjust_skipcol(void)
        ++row;
     }
     if (col > width2)
+    {
        row += col / width2;
+       // col may no longer be used, but make
+       // sure it is correct anyhow, just in case
+       col = col % width2;
+    }
     if (row >= curwin->w_height)
     {
        if (curwin->w_skipcol == 0)
index 6602a489e11795f87b8d0e68d3eea8253ccb39ca..e862e333241de9abaa72258959beea6041ac6ea9 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2005,
 /**/
     2004,
 /**/