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)
/* Only show a popup when it is defined and has entries */
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);
+ }
}
#endif /* FEAT_GUI */
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1915,
/**/
1914,
/**/