richedit: Private movement of cursors in text insertion should not cause WM_NOTIFY...
authorAlex Villacís Lasso <a_villacis@palosanto.com>
Sun, 27 Apr 2008 20:47:26 +0000 (15:47 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 29 Apr 2008 12:57:03 +0000 (14:57 +0200)
commit829940458f11bc74f4fefca5cb200ad9abd17951
tree5bfeb8b5bb14434d164897d115a9de5e78e62422
parentc52bc5881600e6830e2849ca59632755cdaa0bf2
richedit: Private movement of cursors in text insertion should not cause WM_NOTIFY to be sent.

As text is inserted, the cursor is moved to the end, and then back to
offset 0. A reordering of operations prevents a WM_NOTIFY from being
sent on cursor being moved to the end, and another by being moved
back to the beginning. If the cursor was not at offset 0, then
exactly one WM_NOTIFY must be sent, for the movement from previous
position to the beginning.  With tests to prove this change and the
previous one (modify flag should be off on WM_SETTEXT-caused
WM_NOTIFY).
dlls/riched20/editor.c
dlls/riched20/tests/editor.c