Commit 552bc81f authored by Clinton Stimpson's avatar Clinton Stimpson Committed by Alexandre Julliard

riched20: Set modify state when removing text.

parent 2d9685db
......@@ -366,6 +366,8 @@ void ME_DeleteTextAtCursor(ME_TextEditor *editor, int nCursor,
int nChars)
{
assert(nCursor>=0 && nCursor<editor->nCursors);
/* text operations set modified state */
editor->nModifyStep = 1;
ME_InternalDeleteText(editor, ME_GetCursorOfs(editor, nCursor), nChars);
}
......
......@@ -1322,6 +1322,14 @@ static void test_EM_GETMODIFY(void)
result = SendMessage(hwndRichEdit, EM_GETMODIFY, 0, 0);
ok (result != 0,
"EM_GETMODIFY returned zero, instead of non-zero for WM_CHAR\n");
/* press del */
SendMessage(hwndRichEdit, WM_CHAR, 'A', 0);
SendMessage(hwndRichEdit, EM_SETMODIFY, FALSE, 0);
SendMessage(hwndRichEdit, WM_KEYDOWN, VK_BACK, 0);
result = SendMessage(hwndRichEdit, EM_GETMODIFY, 0, 0);
ok (result != 0,
"EM_GETMODIFY returned zero, instead of non-zero for backspace\n");
/* set char format */
SendMessage(hwndRichEdit, EM_SETMODIFY, FALSE, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment