From 5cfa7a72f8c40cdcc0fa93693689915e913806f1 Mon Sep 17 00:00:00 2001 From: Luuk van Baal Date: Tue, 20 Feb 2024 17:25:57 +0100 Subject: 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. --- test/functional/ui/embed_spec.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'test/functional/ui/embed_spec.lua') 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('') @@ -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) -- cgit