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:
Huw Davies 2019-08-19 10:55:26 +01:00 committed by Alexandre Julliard
parent 5419a9804a
commit b9e1ed0668
1 changed files with 2 additions and 2 deletions

View File

@ -2153,9 +2153,9 @@ int set_selection( ME_TextEditor *editor, int to, int from )
TRACE("%d - %d\n", to, from );
ME_InvalidateSelection( editor );
if (!editor->bHideSelection) ME_InvalidateSelection( editor );
end = set_selection_cursors( editor, to, from );
ME_InvalidateSelection( editor );
if (!editor->bHideSelection) ME_InvalidateSelection( editor );
update_caret( editor );
ME_SendSelChange( editor );