Fix test_menu breaking at VimEnter autocommand

This autocommand is turned off for MacVim menus, so don't invoke it in
test.
This commit is contained in:
Yee Cheng Chin
2020-01-27 03:05:50 -08:00
parent a1cb3f34bb
commit ba98e7af61
+3 -1
View File
@@ -12,7 +12,9 @@ func Test_load_menu()
call assert_match('browse confirm w', execute(':menu File.Save'))
let v:errmsg = ''
doautocmd LoadBufferMenu VimEnter
if !has("gui_macvim")
doautocmd LoadBufferMenu VimEnter
endif
call assert_equal('', v:errmsg)
source $VIMRUNTIME/delmenu.vim