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

Dylan Smith dylan.ah.smith at gmail.com
Thu Jun 19 07:47:57 CDT 2008


Needed to resolve a conflict when rebasing.  Here is the updated patch.

On Tue, Jun 17, 2008 at 9:18 PM, Dylan Smith <dylan.ah.smith at gmail.com> wrote:
>
> 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: 17252 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080619/5c730b4f/attachment-0001.diff 


More information about the wine-patches mailing list