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: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
887d7e686d
commit
e69bb46c06
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue