richedit: Tabs cause lines to wrap but not end of paragraph run.

This commit is contained in:
Dylan Smith 2008-07-10 10:17:30 -04:00 committed by Alexandre Julliard
parent e4007e9f97
commit 49468e1824
1 changed files with 5 additions and 1 deletions

View File

@ -290,7 +290,11 @@ static ME_DisplayItem *ME_WrapHandleRun(ME_WrapContext *wc, ME_DisplayItem *p)
if (wc->bOverflown) /* just skipping final whitespaces */
{
if (run->nFlags & (MERF_WHITESPACE|MERF_TAB)) {
/* End paragraph run can't overflow to the next line by itself. */
if (run->nFlags & MERF_ENDPARA)
return p->next;
if (run->nFlags & MERF_WHITESPACE) {
p->member.run.nFlags |= MERF_SKIPPED;
/* wc->pt.x += run->nWidth; */
/* skip runs consisting of only whitespaces */