From 0a8d2996dcb3cd3ebf55b783b08667fa3740433b Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 21 Oct 2016 19:35:59 +0900 Subject: Set foreground color without affecting background Close #712 --- src/result_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/result_test.go') diff --git a/src/result_test.go b/src/result_test.go index 46c20fd9..645684dd 100644 --- a/src/result_test.go +++ b/src/result_test.go @@ -103,7 +103,7 @@ func TestColorOffset(t *testing.T) { ansiOffset{[2]int32{33, 40}, ansiState{4, 8, curses.Bold}}}}} // [{[0 5] 9 false} {[5 15] 99 false} {[15 20] 9 false} {[22 25] 10 true} {[25 35] 99 false} {[35 40] 11 true}] - colors := item.colorOffsets(offsets, 99, 0, true) + colors := item.colorOffsets(offsets, curses.Dark256, 99, 0, true) assert := func(idx int, b int32, e int32, c int, bold bool) { var attr curses.Attr if bold { -- cgit v1.2.3