diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2025-01-09 06:36:29 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-09 06:36:29 -0800 |
commit | 5135a232199047e473e3941b0b5a738c77fbecb5 (patch) | |
tree | c6f964678048febab756f825e6cf76470017d89c /test/functional/api/vim_spec.lua | |
parent | dcaf8bef08d094889ef5fac24d123871dd0e6a6f (diff) | |
parent | 5c92b40b4b173c7d85106689fef811e41994abb0 (diff) | |
download | rneovim-5135a232199047e473e3941b0b5a738c77fbecb5.tar.gz rneovim-5135a232199047e473e3941b0b5a738c77fbecb5.tar.bz2 rneovim-5135a232199047e473e3941b0b5a738c77fbecb5.zip |
Merge #31900 from luukvbaal/nvim_echo
Diffstat (limited to 'test/functional/api/vim_spec.lua')
-rw-r--r-- | test/functional/api/vim_spec.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index 578fa361e8..e0ab31f702 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -3680,6 +3680,30 @@ describe('API', function() async_meths.nvim_echo({ { 'msg\nmsg' }, { 'msg' } }, false, {}) eq('', exec_capture('messages')) end) + + it('can print error message', function() + async_meths.nvim_echo({ { 'Error\nMessage' } }, false, { err = true }) + screen:expect([[ + | + {1:~ }|*3 + {3: }| + {9:Error} | + {9:Message} | + {6:Press ENTER or type command to continue}^ | + ]]) + feed(':messages<CR>') + screen:expect([[ + ^ | + {1:~ }|*6 + | + ]]) + async_meths.nvim_echo({ { 'Error' }, { 'Message', 'Special' } }, false, { err = true }) + screen:expect([[ + ^ | + {1:~ }|*6 + {9:Error}{16:Message} | + ]]) + end) end) describe('nvim_open_term', function() |