[1/4] richedit: Implemented undo coalescing to group typing events (try 2)

Dylan Smith dylan.ah.smith at gmail.com
Tue May 13 18:10:56 CDT 2008

The implementation is based on what I have observed in wordpad within
Windows XP. Consecutively typed characters appear to be grouped
together until the control loses focus, or the cursor is moved with the
mouse or keyboard arrows. Any other events between typing of characters
prevents the characters from being grouped together for a single undo.

The tests added confirm the behaviour is correct since the crosstests
were run on my Windows XP VM.
 dlls/riched20/editor.c       |   22 +++++---
 dlls/riched20/editor.h       |    6 ++-
 dlls/riched20/editstr.h      |    3 +-
 dlls/riched20/list.c         |    1 +
 dlls/riched20/tests/editor.c |   90 ++++++++++++++++++++++++++++++++
 dlls/riched20/undo.c         |  118 ++++++++++++++++++++++++++++++++++++++---
 6 files changed, 221 insertions(+), 19 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-richedit-Implemented-undo-coalescing-to-group-typing.diff
Type: text/x-diff
Size: 17159 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080513/267b9a80/attachment-0001.diff 

More information about the wine-patches mailing list