diff --git a/dlls/riched20/caret.c b/dlls/riched20/caret.c index 7bdd0a7ea71..e9010951cd5 100644 --- a/dlls/riched20/caret.c +++ b/dlls/riched20/caret.c @@ -237,8 +237,6 @@ ME_MoveCaret(ME_TextEditor *editor) { int x, y, height; - if (ME_WrapMarkedParagraphs(editor)) - ME_UpdateScrollBar(editor); ME_GetCursorCoordinates(editor, &editor->pCursors[0], &x, &y, &height); if(editor->bHaveFocus && !ME_IsSelection(editor)) { @@ -1420,7 +1418,6 @@ static void ME_ArrowPageDown(ME_TextEditor *editor, ME_Cursor *pCursor) static void ME_ArrowHome(ME_TextEditor *editor, ME_Cursor *pCursor) { ME_DisplayItem *pRow = ME_FindItemBack(pCursor->pRun, diStartRow); - ME_WrapMarkedParagraphs(editor); if (pRow) { ME_DisplayItem *pRun; if (editor->bCaretAtEnd && !pCursor->nOffset) { diff --git a/dlls/riched20/paint.c b/dlls/riched20/paint.c index 30548feaabb..03ece7bd2de 100644 --- a/dlls/riched20/paint.c +++ b/dlls/riched20/paint.c @@ -44,7 +44,7 @@ void ME_PaintContent(ME_TextEditor *editor, HDC hDC, BOOL bOnlyNew, const RECT * editor->nSequence++; ME_InitContext(&c, editor, hDC); SetBkMode(hDC, TRANSPARENT); - ME_MoveCaret(editor); /* Calls ME_WrapMarkedParagraphs */ + ME_MoveCaret(editor); item = editor->pBuffer->pFirst->next; /* This context point is an offset for the paragraph positions stored * during wrapping. It shouldn't be modified during painting. */