diff options
Diffstat (limited to 'src/item.go')
| -rw-r--r-- | src/item.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/item.go b/src/item.go index cb778cb9..c07d7fff 100644 --- a/src/item.go +++ b/src/item.go @@ -1,6 +1,8 @@ package fzf import ( + "math" + "github.com/junegunn/fzf/src/util" ) @@ -17,7 +19,7 @@ func (item *Item) Index() int32 { return item.text.Index } -var minItem = Item{text: util.Chars{Index: -1}} +var minItem = Item{text: util.Chars{Index: math.MinInt32}} func (item *Item) TrimLength() uint16 { return item.text.TrimLength() |
