summaryrefslogtreecommitdiff
path: root/src/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/menu.c')
-rw-r--r--src/menu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/menu.c b/src/menu.c
index b6f8ce47a..2802de33d 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -1970,7 +1970,12 @@ gui_show_popupmenu(void)
/* 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 */