From 90b0cd44ac8fb9a6965c3dcf050f0e6aa2e90121 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 28 Aug 2015 21:23:10 +0900 Subject: Should not strip ANSI codes when --ansi is not set --- src/core.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core.go') diff --git a/src/core.go b/src/core.go index fdd1e061..4f072151 100644 --- a/src/core.go +++ b/src/core.go @@ -174,7 +174,7 @@ func Run(opts *Options) { chunks: snapshot, pattern: pattern}) for i := 0; i < merger.Length(); i++ { - fmt.Println(merger.Get(i).AsString()) + fmt.Println(merger.Get(i).AsString(opts.Ansi)) } } os.Exit(0) @@ -250,7 +250,7 @@ func Run(opts *Options) { fmt.Println() } for i := 0; i < count; i++ { - fmt.Println(val.Get(i).AsString()) + fmt.Println(val.Get(i).AsString(opts.Ansi)) } os.Exit(0) } -- cgit v1.2.3