aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/messages_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2025-01-09 06:36:29 -0800
committerGitHub <noreply@github.com>2025-01-09 06:36:29 -0800
commit5135a232199047e473e3941b0b5a738c77fbecb5 (patch)
treec6f964678048febab756f825e6cf76470017d89c /test/functional/ui/messages_spec.lua
parentdcaf8bef08d094889ef5fac24d123871dd0e6a6f (diff)
parent5c92b40b4b173c7d85106689fef811e41994abb0 (diff)
downloadrneovim-5135a232199047e473e3941b0b5a738c77fbecb5.tar.gz
rneovim-5135a232199047e473e3941b0b5a738c77fbecb5.tar.bz2
rneovim-5135a232199047e473e3941b0b5a738c77fbecb5.zip
Merge #31900 from luukvbaal/nvim_echo
Diffstat (limited to 'test/functional/ui/messages_spec.lua')
-rw-r--r--test/functional/ui/messages_spec.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/functional/ui/messages_spec.lua b/test/functional/ui/messages_spec.lua
index 77ffc475b0..06048c665c 100644
--- a/test/functional/ui/messages_spec.lua
+++ b/test/functional/ui/messages_spec.lua
@@ -315,6 +315,21 @@ describe('ui/ext_messages', function()
})
feed('<Esc>')
command('set showmode')
+
+ -- kind=echoerr for nvim_echo() err
+ feed(':call nvim_echo([["Error"], ["Message", "Special"]], 1, #{ err:1 })<CR>')
+ screen:expect({
+ cmdline = { {
+ abort = false,
+ } },
+ messages = {
+ {
+ content = { { 'Error', 9, 6 }, { 'Message', 16, 99 } },
+ history = true,
+ kind = 'echoerr',
+ },
+ },
+ })
end)
it(':echoerr', function()