Cancel pending notifications when EM_SETMODIFY is called.

diff --git a/controls/edit.c b/controls/edit.c
index f9debfa..bb73ea3 100644
--- a/controls/edit.c
+++ b/controls/edit.c
@@ -445,7 +445,7 @@
 		if (wParam)
 			es->flags |= EF_MODIFIED;
 		else
-			es->flags &= ~EF_MODIFIED;
+                        es->flags &= ~(EF_MODIFIED | EF_UPDATE);  /* reset pending updates */
 		break;
 
 	case EM_GETLINECOUNT16: