mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:54:05 +00:00
riched20: Ensure that cursor is visible when selecting text.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=40444 Signed-off-by: Santino Mazza <mazzasantino1206@gmail.com>
This commit is contained in:
parent
ee131e9eba
commit
25209c162f
|
@ -2142,6 +2142,7 @@ int set_selection( ME_TextEditor *editor, int to, int from )
|
|||
|
||||
if (!editor->bHideSelection) ME_InvalidateSelection( editor );
|
||||
end = set_selection_cursors( editor, to, from );
|
||||
editor_ensure_visible( editor, &editor->pCursors[0] );
|
||||
if (!editor->bHideSelection) ME_InvalidateSelection( editor );
|
||||
update_caret( editor );
|
||||
ME_SendSelChange( editor );
|
||||
|
|
|
@ -5032,7 +5032,6 @@ static void check_EM_SETSEL_multiline(HWND hwnd)
|
|||
oldY = get_scroll_pos_y(hwnd);
|
||||
SendMessageA(hwnd, EM_SETSEL, 59, 59);
|
||||
curY = get_scroll_pos_y(hwnd);
|
||||
todo_wine
|
||||
ok(oldY < curY, "oldY %d >= curY %d\n", oldY, curY);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue