summaryrefslogtreecommitdiff
path: root/src/item.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2016-06-14 21:52:47 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2016-06-14 21:52:47 +0900
commit24e1fabf2e805ad28901618fafe5fd389b599b4e (patch)
tree81d4317090cc2d0c88e3d00de60c18bc467e0cfe /src/item.go
parentc39c039e155c50bcf8fecc5956c4bdd3b5c6bea1 (diff)
downloadfzf-24e1fabf2e805ad28901618fafe5fd389b599b4e.tar.gz
Do not process ANSI codes in --preview output at once
Close #598
Diffstat (limited to 'src/item.go')
-rw-r--r--src/item.go2
1 files changed, 1 insertions, 1 deletions
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)