aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-05 18:50:20 +0800
committerGitHub <noreply@github.com>2022-08-05 18:50:20 +0800
commit58e1c6fbffd68cd7aaa597e84406d2b55ec64c12 (patch)
tree13941493a3af637d3cafdc6744a775424cd319f6 /src
parent21f5aee77756cb63a240c2384d438208eaecaf62 (diff)
downloadrneovim-58e1c6fbffd68cd7aaa597e84406d2b55ec64c12.tar.gz
rneovim-58e1c6fbffd68cd7aaa597e84406d2b55ec64c12.tar.bz2
rneovim-58e1c6fbffd68cd7aaa597e84406d2b55ec64c12.zip
test(old): clear builtin menus before running tests (#19647)
Otherwise Test_menu_expand() fails when run alone.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/testdir/setup.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/testdir/setup.vim b/src/nvim/testdir/setup.vim
index 9d6fc5e526..6bc3607b69 100644
--- 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'