diff options
-rw-r--r-- | runtime/delmenu.vim | 25 | ||||
-rw-r--r-- | src/testdir/test_menu.vim | 10 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 31 insertions, 6 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 diff --git a/src/testdir/test_menu.vim b/src/testdir/test_menu.vim index df717cc8a7..1602e93de6 100644 --- a/src/testdir/test_menu.vim +++ b/src/testdir/test_menu.vim @@ -160,9 +160,6 @@ endfunc " Test for menu item completion in command line func Test_menu_expand() - " Make sure we don't have stale menu items like Buffers menu. - source $VIMRUNTIME/delmenu.vim - " Create the menu itmes for test menu Dummy.Nothing lll for i in range(1, 4) @@ -369,6 +366,10 @@ func Test_menu_info() \ display: 'tlnoremenu', modes: 'tl', enabled: v:true, silent: v:false, \ rhs: ':tlnoremenu<CR>', noremenu: v:true, script: v:false}, \ menu_info('Test.tlnoremenu', 'tl')) + + " Test for getting all the top-level menu names + call assert_notequal(menu_info('').submenus, []) + aunmenu Test tlunmenu Test call assert_equal({}, menu_info('Test')) @@ -407,9 +408,6 @@ func Test_menu_info() \ shortcut: '', modes: ' ', submenus: ['menu']}, \ menu_info(']Test')) unmenu ]Test - - " Test for getting all the top-level menu names - call assert_notequal(menu_info('').submenus, []) endfunc " Test for <special> keyword in a menu with 'cpo' containing '<' diff --git a/src/version.c b/src/version.c index 7b53bee9df..b6c369951f 100644 --- a/src/version.c +++ b/src/version.c @@ -736,6 +736,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 141, +/**/ 140, /**/ 139, |