summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2024-11-10 19:38:46 +0100
committerMaxime Coste <mawww@kakoune.org>2024-11-11 21:30:03 +1100
commit919934177d6f3149b523c476ab41c37e1ba51034 (patch)
treee19d79d64bf0b7280ec18d069f43779a47dc59da /test
parent8c74660ad3ede76107b4a2f450c27a9202b79937 (diff)
Update line highlighting test
Commit 8c49c8ee4 (Highlight all atoms for the line regardless of has_buffer_range, 2024-11-04) intentionally changes the behavior to also highlight outside the buffer, painting over number-lines. Let's use a final face as suggested to restore the test's previous behavior, fixing the failure.
Diffstat (limited to 'test')
-rw-r--r--test/regression/5001-line-highlighting-breaks-at-region/rc2
-rw-r--r--test/regression/5001-line-highlighting-breaks-at-region/script2
2 files changed, 3 insertions, 1 deletions
diff --git a/test/regression/5001-line-highlighting-breaks-at-region/rc b/test/regression/5001-line-highlighting-breaks-at-region/rc
index 78060e1c..bd8b4cfb 100644
--- a/test/regression/5001-line-highlighting-breaks-at-region/rc
+++ b/test/regression/5001-line-highlighting-breaks-at-region/rc
@@ -2,4 +2,6 @@ add-highlighter window/test regions
add-highlighter window/test/macro region %{#} %{(?=\\n)} group
add-highlighter window/test/code default-region group
add-highlighter window/ number-lines
+face global LineNumbers default,default+F
+face global LineNumberCursor default,default+rF
add-highlighter window/ line 2 ,red
diff --git a/test/regression/5001-line-highlighting-breaks-at-region/script b/test/regression/5001-line-highlighting-breaks-at-region/script
index f696b0d1..89885a7d 100644
--- a/test/regression/5001-line-highlighting-breaks-at-region/script
+++ b/test/regression/5001-line-highlighting-breaks-at-region/script
@@ -1,2 +1,2 @@
ui_out -ignore 1
-ui_out '{ "jsonrpc": "2.0", "method": "draw", "params": [[[{ "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": " 1│" }, { "face": { "fg": "black", "bg": "white", "underline": "default", "attributes": [] }, "contents": "#" }, { "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": "foo\u000a" }], [{ "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": " 2│" }, { "face": { "fg": "default", "bg": "red", "underline": "default", "attributes": [] }, "contents": "bar\u000a" }, { "face": { "fg": "default", "bg": "red", "underline": "default", "attributes": [] }, "contents": " " }]], { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, { "fg": "blue", "bg": "default", "underline": "default", "attributes": [] }] }'
+ui_out '{ "jsonrpc": "2.0", "method": "draw", "params": [[[{ "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": ["final_fg","final_bg","final_attr"] }, "contents": " 1│" }, { "face": { "fg": "black", "bg": "white", "underline": "default", "attributes": [] }, "contents": "#" }, { "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": "foo\u000a" }], [{ "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": ["final_fg","final_bg","final_attr"] }, "contents": " 2│" }, { "face": { "fg": "default", "bg": "red", "underline": "default", "attributes": [] }, "contents": "bar\u000a" }, { "face": { "fg": "default", "bg": "red", "underline": "default", "attributes": [] }, "contents": " " }]], { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, { "fg": "blue", "bg": "default", "underline": "default", "attributes": [] }] }'