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]; }
void ME_DeleteSelection(ME_TextEditor *editor) { int from, to; ME_GetSelection(editor, &from, &to); ME_DeleteTextAtCursor(editor, ME_GetSelCursor(editor,-1), to-from); }
void ME_DeleteSelection(ME_TextEditor *editor) { int from, to; int nStartCursor = ME_GetSelectionOfs(editor, &from, &to); ME_DeleteTextAtCursor(editor, nStartCursor, to - from); }