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 -- [email protected] -- 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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui