To: vim_dev@googlegroups.com Subject: Patch 7.4.1915 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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) Files: src/menu.c *** ../vim-7.4.1914/src/menu.c 2016-02-20 22:16:54.082901623 +0100 --- src/menu.c 2016-06-10 21:50:31.574789423 +0200 *************** *** 1970,1976 **** --- 1970,1981 ---- /* 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 */ *** ../vim-7.4.1914/src/version.c 2016-06-10 19:49:10.370889582 +0200 --- src/version.c 2016-06-10 21:51:35.346788546 +0200 *************** *** 755,756 **** --- 755,758 ---- { /* Add new patch number below this line */ + /**/ + 1915, /**/ -- From "know your smileys": :----} You lie like Pinocchio /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///