richedit: bCaretAtEnd should not be reset from rewrapping text

Dylan Smith dylan.ah.smith at
Mon Jun 23 16:09:58 CDT 2008

The bCaretAtEnd value in ME_TextEditor is used to identify that the
caret is at the end of a wrapped line instead of the start of the next
line in the paragraph since both these positions correspond to the same
position in the document.

The bCaretAtEnd value was previously being set back to FALSE whenever
the window was resized.

This can be seen by entering a paragraph of text in wordpad so that it
wraps to the next line.  Next click at the very end of the line, such
that it is past the trailing space dividing the word with the next word.
Next resize the window so that is about half the width, so that the word
the caret is after is still at the end of the line, and the caret should
be at the at the end of this line.  Previously the caret would be moved
to the start of the next line instead, but this patch fixes that
incorrect behaviour.
 dlls/riched20/caret.c |    4 ----
 dlls/riched20/run.c   |    6 +-----
 2 files changed, 1 insertions(+), 9 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0043-richedit-bCaretAtEnd-should-not-be-reset-from-rewrap.diff
Type: text/x-diff
Size: 1809 bytes
Desc: not available
Url : 

More information about the wine-patches mailing list