diff options
Diffstat (limited to 'src/core.go')
-rw-r--r-- | src/core.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core.go b/src/core.go index 3e60934a..74ff9e7f 100644 --- a/src/core.go +++ b/src/core.go @@ -69,14 +69,14 @@ func Run(opts *Options, revision string) { ansiProcessor = func(data []byte) (util.Chars, *[]ansiOffset) { trimmed, offsets, newState := extractColor(string(data), state, nil) state = newState - return util.RunesToChars([]rune(trimmed)), offsets + return util.ToChars([]byte(trimmed)), offsets } } else { // When color is disabled but ansi option is given, // we simply strip out ANSI codes from the input ansiProcessor = func(data []byte) (util.Chars, *[]ansiOffset) { trimmed, _, _ := extractColor(string(data), nil, nil) - return util.RunesToChars([]rune(trimmed)), nil + return util.ToChars([]byte(trimmed)), nil } } } |