richedit: WM_SETTEXT - Clear modify step flag before any notifications can be sent.
Otherwise the app-defined WM_NOTIFY callback might see the modify flag set, even though WM_SETTEXT is supposed to clear it.
This commit is contained in:
parent
3cad256d54
commit
c52bc58816
|
@ -2436,10 +2436,10 @@ static LRESULT RichEditWndProc_common(HWND hWnd, UINT msg, WPARAM wParam,
|
|||
}
|
||||
else
|
||||
TRACE("WM_SETTEXT - NULL\n");
|
||||
editor->nModifyStep = 0;
|
||||
ME_CommitUndo(editor);
|
||||
ME_EmptyUndoStack(editor);
|
||||
ME_SetSelection(editor, 0, 0);
|
||||
editor->nModifyStep = 0;
|
||||
ME_UpdateRepaint(editor);
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue