From 8d3a302a1754a4e28cc1085b95e9a03981372d02 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 13 Jan 2016 21:36:44 +0900 Subject: Simplify Item structure This commit compensates for the performance overhead from the extended tiebreak option. --- src/pattern.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/pattern.go') diff --git a/src/pattern.go b/src/pattern.go index 4c61b87d..af73b674 100644 --- a/src/pattern.go +++ b/src/pattern.go @@ -306,10 +306,9 @@ func dupItem(item *Item, offsets []Offset) *Item { text: item.text, origText: item.origText, transformed: item.transformed, - index: item.index, offsets: offsets, colors: item.colors, - rank: buildEmptyRank(item.index)} + rank: buildEmptyRank(item.Index())} } func (p *Pattern) basicMatch(item *Item) (int, int, int) { -- cgit v1.2.3