From 7d7e2563962c338daeb61f24573fc0a64a958121 Mon Sep 17 00:00:00 2001 From: okan Date: Wed, 6 Sep 2017 14:15:13 +0000 Subject: [PATCH] Case matters for menu matching on executables; from ben@lloyd.im. --- search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search.c b/search.c index 2f8897d..897623d 100644 --- a/search.c +++ b/search.c @@ -201,7 +201,7 @@ search_match_exec(struct menu_q *menuq, struct menu_q *resultq, char *search) fnmatch(search, mi->text, 0) == FNM_NOMATCH) continue; TAILQ_FOREACH(mj, resultq, resultentry) { - r = strcasecmp(mi->text, mj->text); + r = strcmp(mi->text, mj->text); if (r < 0) TAILQ_INSERT_BEFORE(mj, mi, resultentry); if (r <= 0)