From d90a969c00401a11d86a238eef29048dea42398a Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 14 Aug 2024 08:43:27 +0900 Subject: Add support for hyperlinks in preview window Close #2165 --- src/result_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/result_test.go') diff --git a/src/result_test.go b/src/result_test.go index 2f818a9b..c11e1ab5 100644 --- a/src/result_test.go +++ b/src/result_test.go @@ -124,10 +124,10 @@ func TestColorOffset(t *testing.T) { item := Result{ item: &Item{ colors: &[]ansiOffset{ - {[2]int32{0, 20}, ansiState{1, 5, 0, -1}}, - {[2]int32{22, 27}, ansiState{2, 6, tui.Bold, -1}}, - {[2]int32{30, 32}, ansiState{3, 7, 0, -1}}, - {[2]int32{33, 40}, ansiState{4, 8, tui.Bold, -1}}}}} + {[2]int32{0, 20}, ansiState{1, 5, 0, -1, nil}}, + {[2]int32{22, 27}, ansiState{2, 6, tui.Bold, -1, nil}}, + {[2]int32{30, 32}, ansiState{3, 7, 0, -1, nil}}, + {[2]int32{33, 40}, ansiState{4, 8, tui.Bold, -1, nil}}}}} colBase := tui.NewColorPair(89, 189, tui.AttrUndefined) colMatch := tui.NewColorPair(99, 199, tui.AttrUndefined) -- cgit v1.2.3