riched20: Only send EN_CHANGE when it is supposed to be sent.

oldstable
Clinton Stimpson 2006-11-25 22:04:20 -07:00 committed by Alexandre Julliard
parent 7669035472
commit 78584b6ee1
1 changed files with 5 additions and 1 deletions

View File

@ -117,7 +117,11 @@ void ME_UpdateRepaint(ME_TextEditor *editor)
pCursor = &editor->pCursors[0];
ME_EnsureVisible(editor, pCursor->pRun);
ME_SendOldNotify(editor, EN_CHANGE);
/* send EN_CHANGE if the event mask asks for it */
if(editor->nEventMask & ENM_CHANGE)
{
ME_SendOldNotify(editor, EN_CHANGE);
}
ME_Repaint(editor);
ME_SendSelChange(editor);
}