Mercurial > vim
changeset 9264:b0be59a89bde v7.4.1915
commit https://github.com/vim/vim/commit/2a67ed83a885e8e65e25498660dae4f34d532c7b
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jun 10 21:52:42 2016 +0200
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 https://github.com/vim/vim/issues/855)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 10 Jun 2016 22:00:06 +0200 |
parents | 25a3eae753aa |
children | 2d3262d0362c |
files | src/menu.c src/version.c |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 */