fzy

terminal fuzzy finder picker

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

commit 8f2cbd148124b253b8b5a1e863525c7761a3e7ba
parent 038e4da552e356965e9deb6cbec2da3324fc0c75
Author: John Hawthorn <john.hawthorn@gmail.com>
Date:   Sat, 13 Sep 2014 23:43:40 -0700

Remove unecessary has_match test

Diffstat:
Mmatch.c | 2--
1 file changed, 0 insertions(+), 2 deletions(-)

diff --git a/match.c b/match.c @@ -172,8 +172,6 @@ double calculate_score(const char *needle, const char *haystack, size_t *positio double match_positions(const char *needle, const char *haystack, size_t *positions){ if(!*needle){ return SCORE_MAX; - }else if(!has_match(needle, haystack)){ - return SCORE_MIN; }else if(!strcasecmp(needle, haystack)){ if(positions){ int n = strlen(needle);