Commit a53179da authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

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

parent c59c582c
...@@ -1485,7 +1485,9 @@ void ME_DeleteSelection(ME_TextEditor *editor) ...@@ -1485,7 +1485,9 @@ void ME_DeleteSelection(ME_TextEditor *editor)
{ {
int from, to; int from, to;
int nStartCursor = ME_GetSelectionOfs(editor, &from, &to); int nStartCursor = ME_GetSelectionOfs(editor, &from, &to);
int nEndCursor = nStartCursor ^ 1;
ME_DeleteTextAtCursor(editor, nStartCursor, to - from); ME_DeleteTextAtCursor(editor, nStartCursor, to - from);
editor->pCursors[nEndCursor] = editor->pCursors[nStartCursor];
} }
ME_Style *ME_GetSelectionInsertStyle(ME_TextEditor *editor) ME_Style *ME_GetSelectionInsertStyle(ME_TextEditor *editor)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment