mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
riched20: Ensure the cursors are equal after deleting the selection.
This commit is contained in:
parent
c59c582c9a
commit
a53179dadd
1 changed files with 2 additions and 0 deletions
|
@ -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