Module: wine Branch: master Commit: b9e1ed0668119dc76afdd3d7dc01b5a5626003e2 URL: https://source.winehq.org/git/wine.git/?a=commit;h=b9e1ed0668119dc76afdd3d7d...
Author: Huw Davies huw@codeweavers.com Date: Mon Aug 19 10:55:26 2019 +0100
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
---
dlls/riched20/editor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 118c646..b10f719 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -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 );