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:
Huw Davies 2020-10-27 08:23:27 +00:00 committed by Alexandre Julliard
parent 245b9231c5
commit 0d50e0182d
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}