0
0
mirror of https://github.com/vim/vim.git synced 2025-07-04 23:07:33 -04:00

Call gui_mch_update() before triggering GuiEnter autocmd. (Ron Aaron)

This commit is contained in:
Bram Moolenaar 2010-08-06 20:42:30 +02:00
parent e90ee31c40
commit 97cfe90de8

View File

@ -190,6 +190,7 @@ gui_start()
#ifdef FEAT_AUTOCMD #ifdef FEAT_AUTOCMD
/* If the GUI started successfully, trigger the GUIEnter event, otherwise /* If the GUI started successfully, trigger the GUIEnter event, otherwise
* the GUIFailed event. */ * the GUIFailed event. */
gui_mch_update();
apply_autocmds(gui.in_use ? EVENT_GUIENTER : EVENT_GUIFAILED, apply_autocmds(gui.in_use ? EVENT_GUIENTER : EVENT_GUIFAILED,
NULL, NULL, FALSE, curbuf); NULL, NULL, FALSE, curbuf);
#endif #endif