fzy

terminal fuzzy finder picker

git clone https://9o.is/git/fzy.git

commit d78765850a7fe1bfd94c3b73d7f1f7e88ce34d5d
parent fa42cdf2afbdf32b6938853566d04c75e1ff941e
Author: John Hawthorn <john.hawthorn@gmail.com>
Date:   Sat, 30 Aug 2014 19:31:16 -0700

We can use D[][] to test if there was a match

Diffstat:
Mmatch.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/match.c b/match.c @@ -155,7 +155,7 @@ double calculate_score(const char *needle, const char *haystack, size_t *positio * we encounter, the latest in the candidate * string. */ - if(tolower(needle[i]) == tolower(haystack[j]) && D[i][j] == M[i][j]){ + if(D[i][j] != SCORE_MIN && D[i][j] == M[i][j]){ positions[i] = j--; break; }