From 8569cbd5bfc698daa1d8f8e4bcd0dfbf06d6d967 Mon Sep 17 00:00:00 2001 From: Daisuke Maki Date: Sat, 21 Feb 2026 22:18:04 +0900 Subject: [PATCH] appease linter --- filter/filter_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/filter/filter_test.go b/filter/filter_test.go index 139e67d..5886bfd 100644 --- a/filter/filter_test.go +++ b/filter/filter_test.go @@ -641,9 +641,9 @@ func TestMatchAcrossANSIColorBoundary(t *testing.T) { // "\033[31mfoo\033[34mbar\033[0m" renders as red "foo" + blue "bar", // but the stripped text is "foobar". A query "oba" spans the boundary. lines := makeANSILines( - "\x1b[31mfoo\x1b[34mbar\x1b[0m", // red "foo" + blue "bar" - "\x1b[32mhello\x1b[0m world", // green "hello" + plain " world" - "plain text no ansi", // no ANSI at all + "\x1b[31mfoo\x1b[34mbar\x1b[0m", // red "foo" + blue "bar" + "\x1b[32mhello\x1b[0m world", // green "hello" + plain " world" + "plain text no ansi", // no ANSI at all "\x1b[1m\x1b[33mBRI\x1b[35mGHT\x1b[0m", // bold yellow "BRI" + bold magenta "GHT" )