fzy

terminal fuzzy finder picker

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

commit fa42cdf2afbdf32b6938853566d04c75e1ff941e
parent 032e560031a071ef8b550f81f9c8cbd75c6954bf
Author: John Hawthorn <john.hawthorn@gmail.com>
Date:   Sat, 30 Aug 2014 19:25:44 -0700

D[0][0] need not be initialized to 0

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

diff --git a/match.c b/match.c @@ -111,7 +111,7 @@ double calculate_score(const char *needle, const char *haystack, size_t *positio for(int i = 0; i < n; i++){ for(int j = 0; j < m; j++){ - score_t score = (j || i) ? SCORE_MIN : 0; + score_t score = SCORE_MIN; int match = tolower(needle[i]) == tolower(haystack[j]); D[i][j] = SCORE_MIN; if(match){