mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 00:03:39 -05:00
Remove pointer indirection by changing Chunk definition
This commit is contained in:
@@ -19,6 +19,12 @@ func (item *Item) Index() int32 {
|
||||
return item.index
|
||||
}
|
||||
|
||||
var nilItem = Item{index: -1}
|
||||
|
||||
func (item *Item) Nil() bool {
|
||||
return item.index < 0
|
||||
}
|
||||
|
||||
func (item *Item) TrimLength() int32 {
|
||||
if item.trimLength >= 0 {
|
||||
return item.trimLength
|
||||
|
||||
Reference in New Issue
Block a user