summaryrefslogtreecommitdiffstats
path: root/src/gui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-08-29 16:13:22 +0000
committerBram Moolenaar <Bram@vim.org>2006-08-29 16:13:22 +0000
commit265e5074b59b721f44baae35cfd3af6f9b93b879 (patch)
tree901ecbb7c497390e1a81d48375cb94b217883170 /src/gui.c
parent9160f30161fab3831ad9b769efe2bf720f2b74c2 (diff)
updated for version 7.0-072v7.0.072
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui.c b/src/gui.c
index cf121cfaca..02a14b90d1 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -187,9 +187,10 @@ gui_start()
#endif
#ifdef FEAT_AUTOCMD
- /* If the GUI started successfully, trigger the GUIEnter event */
- if (gui.in_use)
- apply_autocmds(EVENT_GUIENTER, NULL, NULL, FALSE, curbuf);
+ /* If the GUI started successfully, trigger the GUIEnter event, otherwise
+ * the GUIFailed event. */
+ apply_autocmds(gui.in_use ? EVENT_GUIENTER : EVENT_GUIFAILED,
+ NULL, NULL, FALSE, curbuf);
#endif
--recursive;