From 499604337461d0fbd9f922022fa86a9fc0434317 Mon Sep 17 00:00:00 2001 From: Dan Kegel Date: Wed, 9 May 2012 14:53:01 -0700 Subject: [PATCH] riched20: Don't need to redraw when changing selection from none to none. --- dlls/riched20/caret.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/riched20/caret.c b/dlls/riched20/caret.c index 093bd20aa6b..7decff2025f 100644 --- a/dlls/riched20/caret.c +++ b/dlls/riched20/caret.c @@ -146,8 +146,11 @@ int ME_SetSelection(ME_TextEditor *editor, int from, int to) { int start, end; ME_GetSelectionOfs(editor, &start, &end); - editor->pCursors[1] = editor->pCursors[0]; - ME_Repaint(editor); + if (start != end) + { + editor->pCursors[1] = editor->pCursors[0]; + ME_Repaint(editor); + } ME_ClearTempStyle(editor); return end; }