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

This commit is contained in:
Dan Kegel 2012-05-09 14:53:01 -07:00 committed by Alexandre Julliard
parent 08c552a0bd
commit 4996043374
1 changed files with 5 additions and 2 deletions

View File

@ -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;
} }