riched20: Use a run helper in the delete text function.
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
245b9231c5
commit
0d50e0182d
|
@ -405,8 +405,8 @@ BOOL ME_InternalDeleteText(ME_TextEditor *editor, ME_Cursor *start,
|
|||
}
|
||||
if (pThisCur->nOffset == run->len)
|
||||
{
|
||||
pThisCur->pRun = ME_FindItemFwd(pThisCur->pRun, diRunOrParagraphOrEnd);
|
||||
assert(pThisCur->pRun->type == diRun);
|
||||
pThisCur->pRun = run_get_di( run_next( &pThisCur->pRun->member.run ) );
|
||||
assert( pThisCur->pRun );
|
||||
pThisCur->nOffset = 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue