diff options
author | luukvbaal <luukvbaal@gmail.com> | 2025-01-13 13:59:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-13 04:59:34 -0800 |
commit | cb7b4e296238b46025de05203c886d67da401728 (patch) | |
tree | 660ce0d42e77c294b40d2808ddfb3899a12d427d /test/functional/ui/messages_spec.lua | |
parent | 47866cd8d20c62afa8a3c3929d3aada2db9162f5 (diff) | |
download | rneovim-cb7b4e296238b46025de05203c886d67da401728.tar.gz rneovim-cb7b4e296238b46025de05203c886d67da401728.tar.bz2 rneovim-cb7b4e296238b46025de05203c886d67da401728.zip |
feat(messages): "verbose" message kind #31991
Diffstat (limited to 'test/functional/ui/messages_spec.lua')
-rw-r--r-- | test/functional/ui/messages_spec.lua | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/test/functional/ui/messages_spec.lua b/test/functional/ui/messages_spec.lua index 06048c665c..ea4edefe8a 100644 --- a/test/functional/ui/messages_spec.lua +++ b/test/functional/ui/messages_spec.lua @@ -330,6 +330,56 @@ describe('ui/ext_messages', function() }, }, }) + + feed(':1verbose filter Diff[AC] hi<CR>') + screen:expect({ + cmdline = { { + abort = false, + } }, + messages = { + { + content = { + { '\nDiffAdd ' }, + { 'xxx', 22, 30 }, + { ' ' }, + { 'ctermbg=', 18, 5 }, + { '81 ' }, + { 'guibg=', 18, 5 }, + { 'LightBlue' }, + }, + history = false, + kind = 'list_cmd', + }, + { + content = { { '\n\tLast set from Lua (run Nvim with -V1 for more details)' } }, + history = false, + kind = 'verbose', + }, + { + content = { + { '\nDiffChange ' }, + { 'xxx', 4, 31 }, + { ' ' }, + { 'ctermbg=', 18, 5 }, + { '225 ' }, + { 'guibg=', 18, 5 }, + { 'LightMagenta' }, + }, + history = false, + kind = 'list_cmd', + }, + { + content = { { '\n\tLast set from Lua (run Nvim with -V1 for more details)' } }, + history = false, + kind = 'verbose', + }, + { + content = { { 'Press ENTER or type command to continue', 6, 18 } }, + history = false, + kind = 'return_prompt', + }, + }, + }) end) it(':echoerr', function() |