Commit 0d50e018 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

riched20: Use a run helper in the delete text function.

parent 245b9231
...@@ -405,8 +405,8 @@ BOOL ME_InternalDeleteText(ME_TextEditor *editor, ME_Cursor *start, ...@@ -405,8 +405,8 @@ BOOL ME_InternalDeleteText(ME_TextEditor *editor, ME_Cursor *start,
} }
if (pThisCur->nOffset == run->len) if (pThisCur->nOffset == run->len)
{ {
pThisCur->pRun = ME_FindItemFwd(pThisCur->pRun, diRunOrParagraphOrEnd); pThisCur->pRun = run_get_di( run_next( &pThisCur->pRun->member.run ) );
assert(pThisCur->pRun->type == diRun); assert( pThisCur->pRun );
pThisCur->nOffset = 0; pThisCur->nOffset = 0;
} }
} }
......
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