diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-05 10:52:30 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-05 10:52:30 +0100 |
commit | 206fce307b265f7f6c6290b623a80c1d846dd131 (patch) | |
tree | 10e260f84f3d043396ce965623c10577740db0c4 /runtime | |
parent | 3d3f6ac09859905405f35f50b2b7c57ccf40fb47 (diff) |
patch 9.0.0141: "delmenu" does not remove autocmmandsv9.0.0141
Problem: "delmenu" does not remove autocmmands. Running menu test function
alone fails.
Solution: Delete autocommands Make sure there is at least one menu.
(closes #10848)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/delmenu.vim | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/runtime/delmenu.vim b/runtime/delmenu.vim index 040cc09aa9..ef663c73b4 100644 --- a/runtime/delmenu.vim +++ b/runtime/delmenu.vim @@ -7,6 +7,31 @@ aunmenu * tlunmenu * +if exists('#SetupLazyloadMenus') + au! SetupLazyloadMenus + augroup! SetupLazyloadMenus +endif + +if exists('#buffer_list') + au! buffer_list + augroup! buffer_list +endif + +if exists('#LoadBufferMenu') + au! LoadBufferMenu + augroup! LoadBufferMenu +endif + +if exists('#spellmenu') + au! spellmenu + augroup! spellmenu +endif + +if exists('#SpellPopupMenu') + au! SpellPopupMenu + augroup! SpellPopupMenu +endif + unlet! g:did_install_default_menus unlet! g:did_install_syntax_menu |