diff --git a/dlls/riched20/caret.c b/dlls/riched20/caret.c index 02c375c..0a5e5c5 100644 --- a/dlls/riched20/caret.c +++ b/dlls/riched20/caret.c @@ -1293,19 +1293,7 @@ void ME_DeleteSelection(ME_TextEditor *editor) ME_Style *ME_GetSelectionInsertStyle(ME_TextEditor *editor) { - ME_Style *style; - int from, to; - - ME_GetSelection(editor, &from, &to); - if (from != to) { - ME_Cursor c; - ME_CursorFromCharOfs(editor, from, &c); - style = c.pRun->member.run.style; - ME_AddRefStyle(style); /* ME_GetInsertStyle has already done that */ - } - else - style = ME_GetInsertStyle(editor, 0); - return style; + return ME_GetInsertStyle(editor, 0); } void ME_SendSelChange(ME_TextEditor *editor)