diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2019-03-07 02:01:34 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2019-03-07 02:02:02 +0900 |
commit | e00e7e1e5601d193a5d6fa6bb200f0d469a5c61c (patch) | |
tree | 51285062a3e7690f62fab1f5514f7b627f1b507b | |
parent | 1a6defdbcc616368080e4fba0c7cd63d809c9939 (diff) |
Remove unnecessary ANSI code injection
-rw-r--r-- | src/core.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.go b/src/core.go index c4b0dacb..62edd089 100644 --- a/src/core.go +++ b/src/core.go @@ -102,7 +102,7 @@ func Run(opts *Options, revision string) { } else { chunkList = NewChunkList(func(item *Item, data []byte) bool { tokens := Tokenize(string(data), opts.Delimiter) - if opts.Ansi && len(tokens) > 1 { + if opts.Ansi && opts.Theme != nil && len(tokens) > 1 { var ansiState *ansiState if prevLineAnsiState != nil { ansiStateDup := *prevLineAnsiState |