riched20: Remove variable yprev which is not really used from ME_ArrowPageDown.
This commit is contained in:
parent
bbbd723aa5
commit
01777ac5ce
|
@ -1416,7 +1416,7 @@ static void ME_ArrowPageDown(ME_TextEditor *editor, ME_Cursor *pCursor)
|
||||||
} else {
|
} else {
|
||||||
ME_DisplayItem *pRun = pCursor->pRun;
|
ME_DisplayItem *pRun = pCursor->pRun;
|
||||||
ME_DisplayItem *p;
|
ME_DisplayItem *p;
|
||||||
int ys, yd, yp, yprev;
|
int ys, yd, yp;
|
||||||
int yOldScrollPos = editor->vert_si.nPos;
|
int yOldScrollPos = editor->vert_si.nPos;
|
||||||
|
|
||||||
if (!pCursor->nOffset && editor->bCaretAtEnd)
|
if (!pCursor->nOffset && editor->bCaretAtEnd)
|
||||||
|
@ -1425,7 +1425,7 @@ static void ME_ArrowPageDown(ME_TextEditor *editor, ME_Cursor *pCursor)
|
||||||
p = ME_FindItemBack(pRun, diStartRowOrParagraph);
|
p = ME_FindItemBack(pRun, diStartRowOrParagraph);
|
||||||
assert(p->type == diStartRow);
|
assert(p->type == diStartRow);
|
||||||
yp = ME_FindItemBack(p, diParagraph)->member.para.pt.y;
|
yp = ME_FindItemBack(p, diParagraph)->member.para.pt.y;
|
||||||
yprev = ys = y = yp + p->member.row.pt.y;
|
ys = y = yp + p->member.row.pt.y;
|
||||||
|
|
||||||
/* For native richedit controls:
|
/* For native richedit controls:
|
||||||
* v1.0 - v3.1 can only scroll down as far as the scrollbar lets us
|
* v1.0 - v3.1 can only scroll down as far as the scrollbar lets us
|
||||||
|
@ -1447,7 +1447,6 @@ static void ME_ArrowPageDown(ME_TextEditor *editor, ME_Cursor *pCursor)
|
||||||
if (y >= yd)
|
if (y >= yd)
|
||||||
break;
|
break;
|
||||||
pLast = p;
|
pLast = p;
|
||||||
yprev = y;
|
|
||||||
} while(1);
|
} while(1);
|
||||||
|
|
||||||
pCursor->pRun = ME_FindRunInRow(editor, pLast, x, &pCursor->nOffset,
|
pCursor->pRun = ME_FindRunInRow(editor, pLast, x, &pCursor->nOffset,
|
||||||
|
|
Loading…
Reference in New Issue