mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-15 04:05:48 -07:00
Simplify Item structure
This commit compensates for the performance overhead from the extended tiebreak option.
This commit is contained in:
@@ -103,7 +103,6 @@ func Run(opts *Options) {
|
||||
runes, colors := ansiProcessor(data)
|
||||
return &Item{
|
||||
text: runes,
|
||||
index: int32(index),
|
||||
colors: colors,
|
||||
rank: buildEmptyRank(int32(index))}
|
||||
})
|
||||
@@ -120,7 +119,6 @@ func Run(opts *Options) {
|
||||
item := Item{
|
||||
text: joinTokens(trans),
|
||||
origText: &runes,
|
||||
index: int32(index),
|
||||
colors: nil,
|
||||
rank: buildEmptyRank(int32(index))}
|
||||
|
||||
|
Reference in New Issue
Block a user