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

This commit is contained in:
Dylan Smith 2008-06-26 16:17:41 -04:00 committed by Alexandre Julliard
parent add180dde0
commit fad2b57cd7

View File

@ -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);
}