Hi tech@,
I wasn't able to execute "zzz" (lower case) from the exec menu in cwm.
It
skipped over it when ordering the search results because "ZZZ" (upper
case) was already there.
This is my first patch, so please let me know if anything else is
needed.
Thanks,
Ben
Index: app/cwm/search.c
===================================================================
RCS file: /cvs/xenocara/app/cwm/search.c,v
retrieving revision 1.62
diff -u -p -r1.62 search.c
--- app/cwm/search.c 25 Apr 2017 13:40:33 -0000 1.62
+++ app/cwm/search.c 3 Sep 2017 19:21:44 -0000
@@ -201,7 +201,7 @@ search_match_exec(struct menu_q *menuq,
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)