Call gui_mch_update() before triggering GuiEnter autocmd. (Ron Aaron)
diff --git a/src/gui.c b/src/gui.c
index 20a48d4..90209be 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -190,6 +190,7 @@
 #ifdef FEAT_AUTOCMD
     /* If the GUI started successfully, trigger the GUIEnter event, otherwise
      * the GUIFailed event. */
+    gui_mch_update();
     apply_autocmds(gui.in_use ? EVENT_GUIENTER : EVENT_GUIFAILED,
 						   NULL, NULL, FALSE, curbuf);
 #endif