Commit 16d78904 authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

richedit: Don't change text mode with undo or redo stack.

parent 75eef418
...@@ -4319,7 +4319,7 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam, ...@@ -4319,7 +4319,7 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
int mask = 0; int mask = 0;
int changes = 0; int changes = 0;
if (ME_GetTextLength(editor)) if (ME_GetTextLength(editor) || editor->pUndoStack || editor->pRedoStack)
return E_UNEXPECTED; return E_UNEXPECTED;
/* Check for mutually exclusive flags in adjacent bits of wParam */ /* Check for mutually exclusive flags in adjacent bits of wParam */
......
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