mirror of
https://github.com/reactos/wine.git
synced 2025-02-13 08:44:54 +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);
|
ME_GetCursorCoordinates(editor, &editor->pCursors[0], &x, &y, &height);
|
||||||
if(editor->bHaveFocus)
|
if(editor->bHaveFocus)
|
||||||
{
|
{
|
||||||
|
RECT rect;
|
||||||
|
|
||||||
|
GetClientRect(editor->hWnd, &rect);
|
||||||
|
x = min(x, rect.right-2);
|
||||||
CreateCaret(editor->hWnd, NULL, 0, height);
|
CreateCaret(editor->hWnd, NULL, 0, height);
|
||||||
SetCaretPos(x, y);
|
SetCaretPos(x, y);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user