diff options
author | luukvbaal <luukvbaal@gmail.com> | 2024-11-20 21:11:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-20 12:11:20 -0800 |
commit | 1b6442034f6a821d357fe59cd75fdae47a7f7cff (patch) | |
tree | 579c72ee7b2f78025407d58722f9abc992f12cc1 /test/functional/lua/ui_event_spec.lua | |
parent | 0e2f92ed79e3c976ab5a41d40380e761e7f69d3a (diff) | |
download | rneovim-1b6442034f6a821d357fe59cd75fdae47a7f7cff.tar.gz rneovim-1b6442034f6a821d357fe59cd75fdae47a7f7cff.tar.bz2 rneovim-1b6442034f6a821d357fe59cd75fdae47a7f7cff.zip |
fix(messages): more ext_messages kinds #31279
Add kinds for various commands that output a list, the 'wildmode'
list, and for number prompts.
Diffstat (limited to 'test/functional/lua/ui_event_spec.lua')
-rw-r--r-- | test/functional/lua/ui_event_spec.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/functional/lua/ui_event_spec.lua b/test/functional/lua/ui_event_spec.lua index c8616e3e11..f1cf657d78 100644 --- a/test/functional/lua/ui_event_spec.lua +++ b/test/functional/lua/ui_event_spec.lua @@ -285,6 +285,26 @@ describe('vim.ui_attach', function() }, }, }) + feed('<esc>:call inputlist(["Select:", "One", "Two"])<cr>') + screen:expect({ + grid = [[ + E122: {10:Function} Foo already exists, add !| + to replace it | + Type number and <Enter> or click with th| + e mouse (q or empty cancels): | + {1:^~ }| + ]], + messages = { + { + content = { { 'Select:\nOne\nTwo\n' } }, + kind = 'list_cmd', + }, + { + content = { { 'Type number and <Enter> or click with the mouse (q or empty cancels): ' } }, + kind = 'number_prompt', + }, + }, + }) end) end) |