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/result.go | |
parent | 2069bbc8b54fa77384e42274ee15af7b397af884 (diff) |
Remove special nilItem
Diffstat (limited to 'src/result.go')
-rw-r--r-- | src/result.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/result.go b/src/result.go index 2df101b3..58cbafd7 100644 --- a/src/result.go +++ b/src/result.go @@ -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 { |