richedit: Remove reliance on bEmulateVersion10 for end-of-line handling in ME_InternalDeleteText.

This commit is contained in:
Alex Villacís Lasso 2008-04-26 15:48:24 -05:00 committed by Alexandre Julliard
parent 8d37388fe7
commit fd55773680
1 changed files with 3 additions and 3 deletions

View File

@ -270,6 +270,8 @@ void ME_InternalDeleteText(ME_TextEditor *editor, int nOfs,
ME_CursorFromCharOfs(editor, nOfs, &c);
run = &c.pRun->member.run;
if (run->nFlags & MERF_ENDPARA) {
int eollen = run->nCR + run->nLF;
if (!ME_FindItemFwd(c.pRun, diParagraph))
{
return;
@ -277,9 +279,7 @@ void ME_InternalDeleteText(ME_TextEditor *editor, int nOfs,
ME_JoinParagraphs(editor, ME_GetParagraph(c.pRun));
/* ME_SkipAndPropagateCharOffset(p->pRun, shift); */
ME_CheckCharOffsets(editor);
nChars--;
if (editor->bEmulateVersion10 && nChars)
nChars--;
nChars -= (eollen < nChars) ? eollen : nChars;
continue;
}
else