fzy
terminal fuzzy finder picker
git clone https://9o.is/git/fzy.git
commit 3764ca53d4cd3557844a0bf15bea52c44f6bf84b parent 641ded03dc6d74bcd28e2c9d968ddd25ca5f81ce Author: John Hawthorn <john.hawthorn@gmail.com> Date: Sat, 26 Jul 2014 23:42:02 -0700 Don't break ties Diffstat:
| M | fzy.c | | | 3 | +-- |
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fzy.c b/fzy.c @@ -64,8 +64,7 @@ static int cmpchoice(const void *p1, const void *p2) { double score2 = choices_score[idx2]; if(score1 == score2) - /* break ties by length of result */ - return strlen(choices[idx1]) - strlen(choices[idx2]); + return 0; else if(score1 < score2) return 1; else