From 10a173f06974c93de42658a139a7c79dcc7571e0 Mon Sep 17 00:00:00 2001 From: "\"Michael Hauser-Raspe\"" Date: Tue, 28 Jun 2022 01:54:36 +0100 Subject: [PATCH] Fix insensitive mode. --- src/match.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/match.c b/src/match.c index 3f51973..cb51588 100644 --- a/src/match.c +++ b/src/match.c @@ -65,7 +65,7 @@ static bool contains_match(const char* filter, const char* text, bool insensitiv static char* strcasechr(const char* s,char c, bool insensitive) { if(insensitive) { - const char accept[3] = {c, toupper(c), 0}; + const char accept[3] = {tolower(c), toupper(c), 0}; return strpbrk(s, accept); } else { return strchr(s, c);