This commit is contained in:
Kovid Goyal 2014-03-05 08:13:18 +05:30
parent 58c084e68b
commit ed45f1a6aa

View File

@ -106,7 +106,7 @@ static double recursive_match(MatchInfo *m, int32_t haystack_idx, int32_t needle
if (j < m->haystack_len) { if (j < m->haystack_len) {
// bump cursor one char to the right and // bump cursor one char to the right and
// use recursion to try and find a better match // use recursion to try and find a better match
sub_score = recursive_match(m, j, i, last_idx, score); sub_score = recursive_match(m, j, curri, last_idx, score);
if (sub_score > seen_score) if (sub_score > seen_score)
seen_score = sub_score; seen_score = sub_score;
} }