richedit: Send EN_SELCHANGE after wrapping but before EN_CHANGE.
commitdcbc22b98530857266ff950007b29b7a2fbcea1b
authorDylan Smith <dylan.ah.smith@gmail.com>
Wed, 19 May 2010 06:33:02 +0000 (19 02:33 -0400)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 19 May 2010 09:17:55 +0000 (19 11:17 +0200)
tree8bab24af9c8ae4d632073fb8541882c9ae62f8e3
parentd312d4e33caafd00e4f276d313a8422922c7950c
richedit: Send EN_SELCHANGE after wrapping but before EN_CHANGE.

The call to ME_SendSelChange cannot be done in ME_CommitUndo like it was
before, because it must be done after wrapping.  Native richedit controls
send EN_CHANGE first, which is sent in ME_UpdateRepaint, so
ME_SendSelChange must be before this notification in ME_UpdateRepaint.
dlls/riched20/paint.c
dlls/riched20/undo.c