aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/embed_spec.lua
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2024-02-20 17:25:57 +0100
committerLuuk van Baal <luukvbaal@gmail.com>2024-11-08 13:21:35 +0100
commit5cfa7a72f8c40cdcc0fa93693689915e913806f1 (patch)
tree2c482565d5667dc0ec9caca6e893da7d5a37359a /test/functional/ui/embed_spec.lua
parent5a86360400691e55fae66d60485b61360a1d3d6c (diff)
downloadrneovim-5cfa7a72f8c40cdcc0fa93693689915e913806f1.tar.gz
rneovim-5cfa7a72f8c40cdcc0fa93693689915e913806f1.tar.bz2
rneovim-5cfa7a72f8c40cdcc0fa93693689915e913806f1.zip
refactor(message): propagate highlight id instead of attrs
Problem: Highlight group id is not propagated to the end of the message call stack, where ext_messages are emitted. Solution: Refactor message functions to pass along highlight group id instead of attr id.
Diffstat (limited to 'test/functional/ui/embed_spec.lua')
-rw-r--r--test/functional/ui/embed_spec.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/functional/ui/embed_spec.lua b/test/functional/ui/embed_spec.lua
index e1abd43e20..b2fc25601c 100644
--- a/test/functional/ui/embed_spec.lua
+++ b/test/functional/ui/embed_spec.lua
@@ -44,9 +44,9 @@ local function test_embed(ext_linegrid)
screen:expect([[
|*4
{6: }|
- {7:Error detected while processing pre-vimrc command line:} |
- {7:E121: Undefined variable: invalid} |
- {8:Press ENTER or type command to continue}^ |
+ {1:Error detected while processing pre-vimrc command line:} |
+ {1:E121: Undefined variable: invalid} |
+ {2:Press ENTER or type command to continue}^ |
]])
feed('<cr>')
@@ -65,8 +65,8 @@ local function test_embed(ext_linegrid)
screen:expect([[
|*3
{6: }|
- {7:Error detected while processing pre-vimrc command line:} |
- {7:foo} |
+ {1:Error detected while processing pre-vimrc command line:} |
+ {1:foo} |
{7:bar} |
{8:Press ENTER or type command to continue}^ |
]])
@@ -78,10 +78,10 @@ local function test_embed(ext_linegrid)
grid = [[
|*3
{6: }|
- {7:Error detected while processing pre-vimrc command line:} |
- {7:foo} |
- {7:bar} |
- {8:Press ENTER or type command to continue}^ |
+ {1:Error detected while processing pre-vimrc command line:} |
+ {1:foo} |
+ {1:bar} |
+ {2:Press ENTER or type command to continue}^ |
]],
condition = function()
eq(Screen.colors.Green, screen.default_colors.rgb_bg)