mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 10:18:18 +00:00
vim-patch:9.0.0015: with EXITFREE defined terminal menus are not cleared (#19187)
Problem: With EXITFREE defined terminal menus are not cleared.
Solution: Also clear terminal menus. Remove condition that is always true.
(closes vim/vim#10641)
79ae152697
This commit is contained in:
@@ -687,6 +687,7 @@ void free_all_mem(void)
|
|||||||
|
|
||||||
// Clear menus.
|
// Clear menus.
|
||||||
do_cmdline_cmd("aunmenu *");
|
do_cmdline_cmd("aunmenu *");
|
||||||
|
do_cmdline_cmd("tlunmenu *");
|
||||||
do_cmdline_cmd("menutranslate clear");
|
do_cmdline_cmd("menutranslate clear");
|
||||||
|
|
||||||
// Clear mappings, abbreviations, breakpoints.
|
// Clear mappings, abbreviations, breakpoints.
|
||||||
|
@@ -1496,11 +1496,10 @@ void execute_menu(const exarg_T *eap, vimmenu_T *menu, int mode_idx)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (idx == -1 || eap == NULL) {
|
if (idx == MENU_INDEX_INVALID || eap == NULL) {
|
||||||
idx = MENU_INDEX_NORMAL;
|
idx = MENU_INDEX_NORMAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(idx != MENU_INDEX_INVALID);
|
|
||||||
if (menu->strings[idx] != NULL && (menu->modes & (1 << idx))) {
|
if (menu->strings[idx] != NULL && (menu->modes & (1 << idx))) {
|
||||||
// When executing a script or function execute the commands right now.
|
// When executing a script or function execute the commands right now.
|
||||||
// Also for the window toolbar
|
// Also for the window toolbar
|
||||||
|
Reference in New Issue
Block a user