Patch 9.0.0015
Problem:    With EXITFREE defined terminal menus are not cleared.
Solution:   Also clear terminal menus. Remove condition that is always true.
            (closes #10641)
Files:      src/alloc.c, src/menu.c


*** ../vim-9.0.0014/src/alloc.c 2022-06-21 22:04:43.000000000 +0100
--- src/alloc.c 2022-07-01 12:09:27.380536169 +0100
***************
*** 402,407 ****
--- 402,408 ----
  # ifdef FEAT_MENU
        // Clear menus.
        do_cmdline_cmd((char_u *)"aunmenu *");
+       do_cmdline_cmd((char_u *)"tlunmenu *");
  #  ifdef FEAT_MULTI_LANG
        do_cmdline_cmd((char_u *)"menutranslate clear");
  #  endif
*** ../vim-9.0.0014/src/menu.c  2022-06-16 11:37:36.000000000 +0100
--- src/menu.c  2022-07-01 12:09:27.380536169 +0100
***************
*** 2361,2371 ****
      }
  
      // For the WinBar menu always use the Normal mode menu.
!     if (idx == -1 || eap == NULL)
        idx = MENU_INDEX_NORMAL;
  
!     if (idx != MENU_INDEX_INVALID && menu->strings[idx] != NULL
!                                                && (menu->modes & (1 << idx)))
      {
        // When executing a script or function execute the commands right now.
        // Also for the window toolbar.
--- 2361,2370 ----
      }
  
      // For the WinBar menu always use the Normal mode menu.
!     if (idx == MENU_INDEX_INVALID || eap == NULL)
        idx = MENU_INDEX_NORMAL;
  
!     if (menu->strings[idx] != NULL && (menu->modes & (1 << idx)))
      {
        // When executing a script or function execute the commands right now.
        // Also for the window toolbar.
*** ../vim-9.0.0014/src/version.c       2022-06-30 22:28:04.069963729 +0100
--- src/version.c       2022-07-01 12:11:12.432189513 +0100
***************
*** 737,738 ****
--- 737,740 ----
  {   /* Add new patch number below this line */
+ /**/
+     15,
  /**/

-- 
Give a man a computer program and you give him a headache,
but teach him to program computers and you give him the power
to create headaches for others for the rest of his life...
        R. B. Forest

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220701111341.96B7B1C0EFF%40moolenaar.net.

Raspunde prin e-mail lui