riched20: Only invalidate the selection if it's not hidden.
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5419a9804a
commit
b9e1ed0668
|
@ -2153,9 +2153,9 @@ int set_selection( ME_TextEditor *editor, int to, int from )
|
||||||
|
|
||||||
TRACE("%d - %d\n", to, from );
|
TRACE("%d - %d\n", to, from );
|
||||||
|
|
||||||
ME_InvalidateSelection( editor );
|
if (!editor->bHideSelection) ME_InvalidateSelection( editor );
|
||||||
end = set_selection_cursors( editor, to, from );
|
end = set_selection_cursors( editor, to, from );
|
||||||
ME_InvalidateSelection( editor );
|
if (!editor->bHideSelection) ME_InvalidateSelection( editor );
|
||||||
update_caret( editor );
|
update_caret( editor );
|
||||||
ME_SendSelChange( editor );
|
ME_SendSelChange( editor );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue