diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2017-08-15 01:10:41 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-08-15 01:10:41 +0900 |
| commit | 0d171ba1d81886c6f9caf61867129e6daa268cd6 (patch) | |
| tree | e82b6b40439ff4f6fc936f31e65790d976ccddb6 /src/item.go | |
| parent | 2069bbc8b54fa77384e42274ee15af7b397af884 (diff) | |
| download | fzf-0d171ba1d81886c6f9caf61867129e6daa268cd6.tar.gz | |
Remove special nilItem
Diffstat (limited to 'src/item.go')
| -rw-r--r-- | src/item.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/item.go b/src/item.go index b3879cb8..cb778cb9 100644 --- a/src/item.go +++ b/src/item.go @@ -17,11 +17,7 @@ func (item *Item) Index() int32 { return item.text.Index } -var nilItem = Item{text: util.Chars{Index: -1}} - -func (item *Item) Nil() bool { - return item.Index() < 0 -} +var minItem = Item{text: util.Chars{Index: -1}} func (item *Item) TrimLength() uint16 { return item.text.TrimLength() |
