From 24e1fabf2e805ad28901618fafe5fd389b599b4e Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 14 Jun 2016 21:52:47 +0900 Subject: Do not process ANSI codes in --preview output at once Close #598 --- src/item.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/item.go') diff --git a/src/item.go b/src/item.go index 66b3e4d1..06413503 100644 --- a/src/item.go +++ b/src/item.go @@ -128,7 +128,7 @@ func (item *Item) AsString(stripAnsi bool) string { func (item *Item) StringPtr(stripAnsi bool) *string { if item.origText != nil { if stripAnsi { - trimmed, _, _ := extractColor(string(*item.origText), nil) + trimmed, _, _ := extractColor(string(*item.origText), nil, nil) return &trimmed } orig := string(*item.origText) -- cgit v1.2.3