riched20: Fixed undo stack corruption.
This commit is contained in:
parent
46d3762a94
commit
65fdee73b9
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue