richedit: Joined paragraph format depends on number of characters deleted

Dylan Smith dylan.ah.smith at
Mon Aug 4 18:19:01 CDT 2008

This can be tested by doing the following:
1. open wordpad
2. enter two paragraphs of text
3. change the alignment of one of them (e.g. center the second line)
4. Move the cursor to the end of the first line
5. Press delete

Notice that the joined paragraph has the first paragraphs alignment.

6. Undo
7. Move the cursor before the last character of the first line
8. Highlight up to after the first character on the second line, and
press delete.

Notice that the joined paragraph has the second paragraphs alignment
with native richedit controls, but Wine uses the first paragraphs

I found that the first paragraph's format is used if only the end of
line is deleted on a non-empty line, otherwise the second paragraphs
format is used.
 dlls/riched20/caret.c  |    6 +++++-
 dlls/riched20/editor.h |    3 ++-
 dlls/riched20/para.c   |   12 ++++++++----
 dlls/riched20/undo.c   |   12 +++++++-----
 4 files changed, 22 insertions(+), 11 deletions(-)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-richedit-Joined-paragraph-format-depends-on-numb.diff.txt

More information about the wine-patches mailing list