mirror of
https://github.com/reactos/wine.git
synced 2025-02-21 05:11:57 +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;
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user