Mercurial > vim
diff src/gui.c @ 946:4fb859cd9ba9 v7.0.072
updated for version 7.0-072
author | vimboss |
---|---|
date | Tue, 29 Aug 2006 16:13:22 +0000 |
parents | edb3bc186e97 |
children | d607b48414b7 |
line wrap: on
line diff
--- 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;