From de7f10513fd6e0091051863e55e8b0f644481c4a Mon Sep 17 00:00:00 2001 From: bakkeby Date: Mon, 14 Mar 2022 11:15:44 +0100 Subject: [PATCH] fuzzymatch + nosort compatibility --- patch/fuzzymatch.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/patch/fuzzymatch.c b/patch/fuzzymatch.c index 49811fa..8e62cdd 100644 --- a/patch/fuzzymatch.c +++ b/patch/fuzzymatch.c @@ -67,6 +67,10 @@ fuzzymatch(void) for (i = 0, it = matches; it && i < number_of_matches; i++, it = it->right) { fuzzymatches[i] = it; } + + #if NO_SORT_PATCH + if (sortmatches) + #endif // NO_SORT_PATCH /* sort matches according to distance */ qsort(fuzzymatches, number_of_matches, sizeof(struct item*), compare_distance); /* rebuild list of matches */