Commit e69bb46c authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

riched20: Remove a redundant condition.

If the cursor offset is zero, then it is by definition at the beginning of a run. Signed-off-by: 's avatarHuw Davies <huw@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 887d7e68
......@@ -327,9 +327,7 @@ BOOL ME_InternalDeleteText(ME_TextEditor *editor, ME_Cursor *start,
{
ME_Run *run;
cursor_from_char_ofs( editor, nOfs + nChars, &c );
if (!c.nOffset &&
nOfs+nChars == (c.pRun->member.run.nCharOfs
+ c.pPara->member.para.nCharOfs))
if (!c.nOffset)
{
/* We aren't deleting anything in this run, so we will go back to the
* last run we are deleting text in. */
......
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