mirror of
https://github.com/mintycube/dmenu.git
synced 2024-10-22 14:05:48 +02:00
fuzzymatch + nosort compatibility
This commit is contained in:
parent
84c91ee18e
commit
de7f10513f
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user