mirror of
https://github.com/vim/vim.git
synced 2025-12-10 18:46:57 -05:00
patch 9.0.0141: "delmenu" does not remove autocmmands
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)
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user