riched20: Don't need to redraw when changing selection from none to none.
This commit is contained in:
parent
08c552a0bd
commit
4996043374
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue