From 49468e1824cac4df5d09614884100f79b33b50cb Mon Sep 17 00:00:00 2001 From: Dylan Smith Date: Thu, 10 Jul 2008 10:17:30 -0400 Subject: [PATCH] richedit: Tabs cause lines to wrap but not end of paragraph run. --- dlls/riched20/wrap.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dlls/riched20/wrap.c b/dlls/riched20/wrap.c index 82c26989f6a..34fbf09b3d6 100644 --- a/dlls/riched20/wrap.c +++ b/dlls/riched20/wrap.c @@ -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 */