mirror of
https://github.com/reactos/wine.git
synced 2025-02-09 05:36:56 +00:00
richedit: Ensure caret is seen if moved past end of view over trailing spaces.
This commit is contained in:
parent
add180dde0
commit
fad2b57cd7
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user