Commit fad2b57c authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

richedit: Ensure caret is seen if moved past end of view over trailing spaces.

parent add180dd
......@@ -236,6 +236,10 @@ ME_MoveCaret(ME_TextEditor *editor)
ME_GetCursorCoordinates(editor, &editor->pCursors[0], &x, &y, &height);
if(editor->bHaveFocus)
{
RECT rect;
GetClientRect(editor->hWnd, &rect);
x = min(x, rect.right-2);
CreateCaret(editor->hWnd, NULL, 0, height);
SetCaretPos(x, y);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment