0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 7.4.1915

Problem:    The effect of the PopupMenu autocommand isn't directly visible.
Solution:   Call gui_update_menus() before displaying the popup menu. (Shane
            Harper, closs #855)
This commit is contained in:
Bram Moolenaar
2016-06-10 21:52:42 +02:00
parent e429e70f05
commit 2a67ed83a8
2 changed files with 7 additions and 0 deletions

View File

@@ -1970,7 +1970,12 @@ gui_show_popupmenu(void)
/* Only show a popup when it is defined and has entries */ /* Only show a popup when it is defined and has entries */
if (menu != NULL && menu->children != NULL) if (menu != NULL && menu->children != NULL)
{
/* Update the menus now, in case the MenuPopup autocommand did
* anything. */
gui_update_menus(0);
gui_mch_show_popupmenu(menu); gui_mch_show_popupmenu(menu);
}
} }
#endif /* FEAT_GUI */ #endif /* FEAT_GUI */

View File

@@ -753,6 +753,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1915,
/**/ /**/
1914, 1914,
/**/ /**/