diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2024-11-11 15:13:01 +0100 |
---|---|---|
committer | Luuk van Baal <luukvbaal@gmail.com> | 2024-11-11 15:15:33 +0100 |
commit | 9fa3a0964e9bf47932d350cdb53ef0364175a672 (patch) | |
tree | 79ea28b60d9fe871d78c35c8d4e210f0c22d7c0a /test/functional/ui/messages_spec.lua | |
parent | ff575b38864022b0b27527f11636c49107acd1bc (diff) | |
download | rneovim-9fa3a0964e9bf47932d350cdb53ef0364175a672.tar.gz rneovim-9fa3a0964e9bf47932d350cdb53ef0364175a672.tar.bz2 rneovim-9fa3a0964e9bf47932d350cdb53ef0364175a672.zip |
fix(messages): pass previous highlight id to ext chunks
Diffstat (limited to 'test/functional/ui/messages_spec.lua')
-rw-r--r-- | test/functional/ui/messages_spec.lua | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/functional/ui/messages_spec.lua b/test/functional/ui/messages_spec.lua index d48af589ea..804ba83698 100644 --- a/test/functional/ui/messages_spec.lua +++ b/test/functional/ui/messages_spec.lua @@ -420,15 +420,15 @@ describe('ui/ext_messages', function() { content = { { '\nErrorMsg ' }, - { 'xxx', 9, 0 }, + { 'xxx', 9, 7 }, { ' ' }, - { 'ctermfg=', 18, 0 }, + { 'ctermfg=', 18, 6 }, { '15 ' }, - { 'ctermbg=', 18, 0 }, + { 'ctermbg=', 18, 6 }, { '1 ' }, - { 'guifg=', 18, 0 }, + { 'guifg=', 18, 6 }, { 'White ' }, - { 'guibg=', 18, 0 }, + { 'guibg=', 18, 6 }, { 'Red' }, }, kind = '', @@ -502,7 +502,7 @@ describe('ui/ext_messages', function() items = { { 'alphpabet', '', '', '' }, { 'alphanum', '', '', '' } }, pos = 1, }, - showmode = { { '-- Keyword Local completion (^N^P) ', 5, 19 }, { 'match 1 of 2', 6, 19 } }, + showmode = { { '-- Keyword Local completion (^N^P) ', 5, 12 }, { 'match 1 of 2', 6, 19 } }, } -- echomsg and showmode don't overwrite each other, this is the same @@ -524,7 +524,7 @@ describe('ui/ext_messages', function() content = { { 'stuff' } }, kind = 'echomsg', } }, - showmode = { { '-- Keyword Local completion (^N^P) ', 5, 19 }, { 'match 1 of 2', 6, 19 } }, + showmode = { { '-- Keyword Local completion (^N^P) ', 5, 12 }, { 'match 1 of 2', 6, 19 } }, } feed('<c-p>') @@ -544,7 +544,7 @@ describe('ui/ext_messages', function() content = { { 'stuff' } }, kind = 'echomsg', } }, - showmode = { { '-- Keyword Local completion (^N^P) ', 5, 19 }, { 'match 2 of 2', 6, 19 } }, + showmode = { { '-- Keyword Local completion (^N^P) ', 5, 12 }, { 'match 2 of 2', 6, 19 } }, } feed('<esc>:messages<cr>') @@ -945,7 +945,7 @@ stack traceback: { content = { { '\nn Q @@\nn Y y$\nn j ' }, - { '*', 18, 0 }, + { '*', 18, 1 }, { ' k' }, }, kind = '', @@ -1044,7 +1044,7 @@ stack traceback: ]], messages = { { - content = { { 'wow, ', 10, 7 }, { 'such\n\nvery ', 9, 13 }, { 'color', 8, 13 } }, + content = { { 'wow, ', 10, 9 }, { 'such\n\nvery ', 9, 7 }, { 'color', 8, 13 } }, kind = 'echomsg', }, }, |