fuzzymatch + nosort compatibility

This commit is contained in:
bakkeby 2022-03-14 11:15:44 +01:00
parent 84c91ee18e
commit de7f10513f

View File

@ -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 */