diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-03-28 01:45:00 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-01-27 00:51:58 +0100 |
commit | 827ed144fb4cfafd2727f55e6b25e07c96962138 (patch) | |
tree | 9fe1a9a6ad2c21f5c532511cb341ba31ac068999 /test | |
parent | d63b534f313326c79c7b9feaf51ca0d798dd65db (diff) | |
download | rneovim-827ed144fb4cfafd2727f55e6b25e07c96962138.tar.gz rneovim-827ed144fb4cfafd2727f55e6b25e07c96962138.tar.bz2 rneovim-827ed144fb4cfafd2727f55e6b25e07c96962138.zip |
fix ":menu Item.SubItem"
:menu should print sub-menu contents. E.g. this should print the
"File.Save" submenu:
nvim -u NORC
:source $VIMRUNTIME/menu.vim
:menu File.Save
Regressed in dc685387a3d6
Blocks #8173
menu_get() also was missing some results for some cases.
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/ex_cmds/menu_spec.lua | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/test/functional/ex_cmds/menu_spec.lua b/test/functional/ex_cmds/menu_spec.lua index 2c0535acda..d06af45be0 100644 --- a/test/functional/ex_cmds/menu_spec.lua +++ b/test/functional/ex_cmds/menu_spec.lua @@ -363,14 +363,24 @@ describe('menu_get', function() local m = funcs.menu_get("Test","i") local expected = { { - mappings = { - i = { - sid = 1, - noremap = 1, - enabled = 1, - rhs = "insert", - silent = 0 - } + shortcut = "T", + submenus = { + { + mappings = { + i = { + sid = 1, + noremap = 1, + enabled = 1, + rhs = "insert", + silent = 0 + }, + }, + priority = 500, + name = "Test", + hidden = 0 + }, + { + }, }, priority = 500, name = "Test", |