riched20: Ensure the cursors are equal after deleting the selection.

This commit is contained in:
Huw Davies 2014-01-07 12:44:24 +00:00 committed by Alexandre Julliard
parent c59c582c9a
commit a53179dadd

View file

@ -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)