From 24e1fabf2e805ad28901618fafe5fd389b599b4e Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 14 Jun 2016 21:52:47 +0900 Subject: Do not process ANSI codes in --preview output at once Close #598 --- src/ansi_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ansi_test.go') diff --git a/src/ansi_test.go b/src/ansi_test.go index e278fe98..31803f38 100644 --- a/src/ansi_test.go +++ b/src/ansi_test.go @@ -17,7 +17,7 @@ func TestExtractColor(t *testing.T) { var state *ansiState clean := "\x1b[0m" check := func(assertion func(ansiOffsets []ansiOffset, state *ansiState)) { - output, ansiOffsets, newState := extractColor(src, state) + output, ansiOffsets, newState := extractColor(src, state, nil) state = newState if output != "hello world" { t.Errorf("Invalid output: {}", output) -- cgit v1.2.3