diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2015-08-28 21:23:10 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-08-28 21:23:10 +0900 |
commit | 90b0cd44ac8fb9a6965c3dcf050f0e6aa2e90121 (patch) | |
tree | 2d1f49202779dfbcf797e3b7290f077f1b19bfe5 /src/core.go | |
parent | 698e8008df42d863af01a8da81f560f295f728ea (diff) |
Should not strip ANSI codes when --ansi is not set
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 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) } |