From ed45f1a6aa27a14f5b1e3d58270a30eef9212bc6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 5 Mar 2014 08:13:18 +0530 Subject: [PATCH] ... --- src/calibre/gui2/tweak_book/matcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/matcher.c b/src/calibre/gui2/tweak_book/matcher.c index 158216c758..bc7885fa39 100644 --- a/src/calibre/gui2/tweak_book/matcher.c +++ b/src/calibre/gui2/tweak_book/matcher.c @@ -106,7 +106,7 @@ static double recursive_match(MatchInfo *m, int32_t haystack_idx, int32_t needle if (j < m->haystack_len) { // bump cursor one char to the right and // 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) seen_score = sub_score; }