diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2017-07-21 17:29:14 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-07-21 17:31:11 +0900 |
| commit | bd98f988f0502251d13650afddde1916ad87d28d (patch) | |
| tree | 3918691e73c365fec18f4b6799a61e24bd6f2e90 /src/terminal_test.go | |
| parent | 06301c7847c69915fe8214ab87480f0eba59c5bf (diff) | |
| download | fzf-bd98f988f0502251d13650afddde1916ad87d28d.tar.gz | |
Further reduce unnecessary rune array conversion
I was too quick to release 0.16.9, this commit makes --ansi processing
even faster.
Diffstat (limited to 'src/terminal_test.go')
| -rw-r--r-- | src/terminal_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/terminal_test.go b/src/terminal_test.go index 41941eeb..d42d2b82 100644 --- a/src/terminal_test.go +++ b/src/terminal_test.go @@ -10,7 +10,7 @@ import ( func newItem(str string) *Item { bytes := []byte(str) trimmed, _, _ := extractColor(str, nil, nil) - return &Item{origText: &bytes, text: util.RunesToChars([]rune(trimmed))} + return &Item{origText: &bytes, text: util.ToChars([]byte(trimmed))} } func TestReplacePlaceholder(t *testing.T) { |
