[6/44] richedit: Implemented undo coalescing to group typing events

Dylan Smith dylan.ah.smith at gmail.com
Tue Jun 17 20:18:37 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: 0006-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/20080617/8999fa7c/attachment.diff 


More information about the wine-patches mailing list