diff --git a/dlls/riched20/run.c b/dlls/riched20/run.c index b9c33a5f61c..13a7204f42b 100644 --- a/dlls/riched20/run.c +++ b/dlls/riched20/run.c @@ -324,7 +324,8 @@ ME_InsertRunAtCursor(ME_TextEditor *editor, ME_Cursor *cursor, ME_Style *style, pUI = ME_AddUndoItem(editor, diUndoDeleteRun, NULL); if (pUI) { - pUI->nStart = cursor->pRun->member.run.nCharOfs; + pUI->nStart = (ME_GetParagraph(cursor->pRun)->member.para.nCharOfs + + cursor->pRun->member.run.nCharOfs); pUI->nLen = len; }