From f9490f7f7702d769191ed84898237b5ec6640204 Mon Sep 17 00:00:00 2001 From: toaster Date: Fri, 12 Sep 2025 12:53:18 +0100 Subject: [PATCH] Actually search subfolders other than doing the "priority" one twice Resolves Ring-Racers/#2 - what a genuinely embarassing oversight --- src/filesrch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filesrch.c b/src/filesrch.c index 5ec0c8a9f..ba626618c 100644 --- a/src/filesrch.c +++ b/src/filesrch.c @@ -546,7 +546,7 @@ filestatus_t filesearch(char *filename, const char *startpath, // When we're at the root of the search, we exclude certain folders. if (priorityfolder != NULL - && strcasecmp(priorityfolder, dent->d_name)) + && !strcasecmp(priorityfolder, dent->d_name)) { // We skip revisiting the priority by pretending // it matched the first exclude directory instead