updated for version 7.2-071
diff --git a/src/netbeans.c b/src/netbeans.c
index 92ca89f..6730176 100644
--- a/src/netbeans.c
+++ b/src/netbeans.c
@@ -769,11 +769,14 @@
 	return; /* don't try to parse it */
     }
 
-#ifdef FEAT_GUI_GTK
+#if defined(FEAT_GUI_GTK) || defined(FEAT_GUI_W32)
+    /* Let the main loop handle messages. */
+# ifdef FEAT_GUI_GTK
     if (gtk_main_level() > 0)
 	gtk_main_quit();
+# endif
 #else
-    /* Parse the messages, but avoid recursion. */
+    /* Parse the messages now, but avoid recursion. */
     if (level == 1)
 	netbeans_parse_messages();