mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 16:43:38 +00:00
riched20: Ensure the cursors are equal after deleting the selection.
This commit is contained in:
parent
c59c582c9a
commit
a53179dadd
|
@ -1485,7 +1485,9 @@ void ME_DeleteSelection(ME_TextEditor *editor)
|
|||
{
|
||||
int from, to;
|
||||
int nStartCursor = ME_GetSelectionOfs(editor, &from, &to);
|
||||
int nEndCursor = nStartCursor ^ 1;
|
||||
ME_DeleteTextAtCursor(editor, nStartCursor, to - from);
|
||||
editor->pCursors[nEndCursor] = editor->pCursors[nStartCursor];
|
||||
}
|
||||
|
||||
ME_Style *ME_GetSelectionInsertStyle(ME_TextEditor *editor)
|
||||
|
|
Loading…
Reference in a new issue