mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-09 14:55:58 +08:00
Revise ranking algorithm
This commit is contained in:
20 files changed
+961
-460
No files matched your search
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
func TestChunkList(t *testing.T) {
|
||||
// FIXME global
|
||||
sortCriteria = []criterion{byMatchLen, byLength}
|
||||
sortCriteria = []criterion{byScore, byLength}
|
||||
|
||||
cl := NewChunkList(func(s []byte, i int) *Item {
|
||||
return &Item{text: util.ToChars(s), index: int32(i * 2)}
|
||||
|
||||
Reference in new issue
Block a user