Commit 49960433 authored by Dan Kegel's avatar Dan Kegel Committed by Alexandre Julliard

riched20: Don't need to redraw when changing selection from none to none.

parent 08c552a0
...@@ -146,8 +146,11 @@ int ME_SetSelection(ME_TextEditor *editor, int from, int to) ...@@ -146,8 +146,11 @@ int ME_SetSelection(ME_TextEditor *editor, int from, int to)
{ {
int start, end; int start, end;
ME_GetSelectionOfs(editor, &start, &end); ME_GetSelectionOfs(editor, &start, &end);
editor->pCursors[1] = editor->pCursors[0]; if (start != end)
ME_Repaint(editor); {
editor->pCursors[1] = editor->pCursors[0];
ME_Repaint(editor);
}
ME_ClearTempStyle(editor); ME_ClearTempStyle(editor);
return end; return end;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment