m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 15:53:39 -05:00

Remove special nilItem

This commit is contained in:
Junegunn Choi
2017-08-15 01:10:41 +09:00
parent 2069bbc8b5
commit 0d171ba1d8
9 changed files with 49 additions and 51 deletions

View File

@@ -85,7 +85,7 @@ func (result *Result) Index() int32 {
}
func minRank() Result {
return Result{item: &nilItem, points: [4]uint16{math.MaxUint16, 0, 0, 0}}
return Result{item: &minItem, points: [4]uint16{math.MaxUint16, 0, 0, 0}}
}
func (result *Result) colorOffsets(matchOffsets []Offset, theme *tui.ColorTheme, color tui.ColorPair, attr tui.Attr, current bool) []colorOffset {