riched20: Only send EN_CHANGE when it is supposed to be sent.
This commit is contained in:
parent
7669035472
commit
78584b6ee1
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue