diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2016-06-14 21:52:47 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2016-06-14 21:52:47 +0900 |
commit | 24e1fabf2e805ad28901618fafe5fd389b599b4e (patch) | |
tree | 81d4317090cc2d0c88e3d00de60c18bc467e0cfe /src/ansi_test.go | |
parent | c39c039e155c50bcf8fecc5956c4bdd3b5c6bea1 (diff) |
Do not process ANSI codes in --preview output at once
Close #598
Diffstat (limited to 'src/ansi_test.go')
-rw-r--r-- | src/ansi_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |