commit 58e1c6fbffd68cd7aaa597e84406d2b55ec64c12
parent 21f5aee77756cb63a240c2384d438208eaecaf62
Author: zeertzjq <zeertzjq@outlook.com>
Date: Fri, 5 Aug 2022 18:50:20 +0800
test(old): clear builtin menus before running tests (#19647)
Otherwise Test_menu_expand() fails when run alone.
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/nvim/testdir/setup.vim b/src/nvim/testdir/setup.vim
@@ -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'