summaryrefslogtreecommitdiff
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
parent9160f30161fab3831ad9b769efe2bf720f2b74c2 (diff)
downloadvim-git-265e5074b59b721f44baae35cfd3af6f9b93b879.tar.gz
updated for version 7.0-072v7.0.072
-rw-r--r--src/fileio.c1
-rw-r--r--src/gui.c7
-rw-r--r--src/version.c2
-rw-r--r--src/vim.h1
4 files changed, 8 insertions, 3 deletions
diff --git a/src/fileio.c b/src/fileio.c
index cde44d6a8..4ef21fe40 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -6980,6 +6980,7 @@ static struct event_name
{"FocusLost", EVENT_FOCUSLOST},
{"FuncUndefined", EVENT_FUNCUNDEFINED},
{"GUIEnter", EVENT_GUIENTER},
+ {"GUIFailed", EVENT_GUIFAILED},
{"InsertChange", EVENT_INSERTCHANGE},
{"InsertEnter", EVENT_INSERTENTER},
{"InsertLeave", EVENT_INSERTLEAVE},
diff --git a/src/gui.c b/src/gui.c
index cf121cfac..02a14b90d 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;
diff --git a/src/version.c b/src/version.c
index 35c6c5630..649290ef6 100644
--- a/src/version.c
+++ b/src/version.c
@@ -667,6 +667,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 72,
+/**/
71,
/**/
70,
diff --git a/src/vim.h b/src/vim.h
index b7ed480e6..c8ec443c4 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1120,6 +1120,7 @@ enum auto_event
EVENT_FOCUSGAINED, /* got the focus */
EVENT_FOCUSLOST, /* lost the focus to another app */
EVENT_GUIENTER, /* after starting the GUI */
+ EVENT_GUIFAILED, /* after starting the GUI failed */
EVENT_INSERTCHANGE, /* when changing Insert/Replace mode */
EVENT_INSERTENTER, /* when entering Insert mode */
EVENT_INSERTLEAVE, /* when leaving Insert mode */