mirror of
https://github.com/reactos/wine.git
synced 2025-02-19 20:31:35 +00:00
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…
x
Reference in New Issue
Block a user