0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.0.2005: partially revert patch v9.0.1997

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>
This commit is contained in:
Christian Brabandt
2023-10-09 17:52:14 +02:00
parent d4afbdd071
commit b56cef0be0
2 changed files with 12 additions and 0 deletions

View File

@@ -1753,7 +1753,12 @@ scrolldown(
++row; ++row;
} }
if (col > width2 && width2 > 0) if (col > width2 && width2 > 0)
{
row += col / width2; 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) if (row >= curwin->w_height)
{ {
curwin->w_curswant = curwin->w_virtcol curwin->w_curswant = curwin->w_virtcol
@@ -1986,7 +1991,12 @@ adjust_skipcol(void)
++row; ++row;
} }
if (col > width2) if (col > width2)
{
row += 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 (row >= curwin->w_height)
{ {
if (curwin->w_skipcol == 0) if (curwin->w_skipcol == 0)

View File

@@ -704,6 +704,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 */
/**/
2005,
/**/ /**/
2004, 2004,
/**/ /**/