diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2016-06-14 21:52:47 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2016-06-14 21:52:47 +0900 |
| commit | 24e1fabf2e805ad28901618fafe5fd389b599b4e (patch) | |
| tree | 81d4317090cc2d0c88e3d00de60c18bc467e0cfe /src/item.go | |
| parent | c39c039e155c50bcf8fecc5956c4bdd3b5c6bea1 (diff) | |
| download | fzf-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.go | 2 |
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) |
