summaryrefslogtreecommitdiffstats
path: root/src/core.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2019-03-07 02:01:34 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2019-03-07 02:02:02 +0900
commite00e7e1e5601d193a5d6fa6bb200f0d469a5c61c (patch)
tree51285062a3e7690f62fab1f5514f7b627f1b507b /src/core.go
parent1a6defdbcc616368080e4fba0c7cd63d809c9939 (diff)
Remove unnecessary ANSI code injection
Diffstat (limited to 'src/core.go')
-rw-r--r--src/core.go2
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