summaryrefslogtreecommitdiff
path: root/src/item.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2016-08-14 17:51:34 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2016-08-14 17:51:34 +0900
commitd4b63381029b477d064d4c3ff38f4efb89ae950d (patch)
treec15c9374b6af10778b096455b56b88a874b7ed64 /src/item.go
parent8df7d962e60bce44adda674ef8f99a2a76a4a6e7 (diff)
downloadfzf-d4b63381029b477d064d4c3ff38f4efb89ae950d.tar.gz
Lint
Diffstat (limited to 'src/item.go')
-rw-r--r--src/item.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/item.go b/src/item.go
index 36f8c0ae..584dfd85 100644
--- a/src/item.go
+++ b/src/item.go
@@ -44,6 +44,7 @@ func buildEmptyRank(index int32) [5]int32 {
return [5]int32{0, 0, 0, 0, index}
}
+// Index returns ordinal index of the Item
func (item *Item) Index() int32 {
return item.rank[4]
}