test(old): clear builtin menus before running tests (#19647)

Otherwise Test_menu_expand() fails when run alone.
This commit is contained in:
zeertzjq 2022-08-05 18:50:20 +08:00 committed by GitHub
parent 21f5aee777
commit 58e1c6fbff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,9 +39,11 @@ if exists('s:did_load')
endif
let s:did_load = 1
" Clear Nvim default mappings.
" Clear Nvim default mappings and menus.
mapclear
mapclear!
aunmenu *
tlunmenu *
" Prevent Nvim log from writing to stderr.
let $NVIM_LOG_FILE = exists($NVIM_LOG_FILE) ? $NVIM_LOG_FILE : 'Xnvim.log'