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:
10
src/move.c
10
src/move.c
@@ -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)
|
||||||
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user