http://bugs.winehq.org/show_bug.cgi?id=5882
------- Additional Comments From MattFinn@gmail.com 2006-07-08 10:26 ------- The problem stems from ME_MoveCaret being run with paragraphs marked for rewrapping, but not wrapped yet.
A possible fix would be to just wrap things at that point:
diff --git a/dlls/riched20/caret.c b/dlls/riched20/caret.c index 5124822..ebfcff5 100644 --- a/dlls/riched20/caret.c +++ b/dlls/riched20/caret.c @@ -175,6 +175,7 @@ ME_MoveCaret(ME_TextEditor *editor) { int x, y, height;
+ ME_WrapMarkedParagraphs(editor); ME_GetCursorCoordinates(editor, &editor->pCursors[0], &x, &y, &height); CreateCaret(editor->hWnd, NULL, 0, height); SetCaretPos(x, y);