Skip to content

Commit ba98e7a

Browse files
committed
Fix test_menu breaking at VimEnter autocommand
This autocommand is turned off for MacVim menus, so don't invoke it in test.
1 parent a1cb3f3 commit ba98e7a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/testdir/test_menu.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ func Test_load_menu()
1212
call assert_match('browse confirm w', execute(':menu File.Save'))
1313

1414
let v:errmsg = ''
15-
doautocmd LoadBufferMenu VimEnter
15+
if !has("gui_macvim")
16+
doautocmd LoadBufferMenu VimEnter
17+
endif
1618
call assert_equal('', v:errmsg)
1719

1820
source $VIMRUNTIME/delmenu.vim

0 commit comments

Comments
 (0)