From 9d5c7f144f90bd145b80c7e87e0a029d7fdf19d9 Mon Sep 17 00:00:00 2001 From: Nikita Ivanov Date: Sun, 12 Jun 2022 22:32:15 +0500 Subject: [PATCH] Fix: prioritize more specific previews --- src/preview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/preview.c b/src/preview.c index 9fda907..c28699e 100644 --- a/src/preview.c +++ b/src/preview.c @@ -37,7 +37,7 @@ static int cmp_previews(const void *p1, const void *p2) return -i; if ((i = strcmpnull(pr1->subtype, pr2->subtype)) != 0) - return i; + return -i; if ((i = pr2->priority - pr1->priority) != 0) return i;