cvsimport

* refs/heads/master:
  Case matters for menu matching on executables; from ben@lloyd.im.
This commit is contained in:
okan 2017-09-06 14:15:13 +00:00
commit 087b803b45

View File

@ -201,7 +201,7 @@ search_match_exec(struct menu_q *menuq, struct menu_q *resultq, char *search)
fnmatch(search, mi->text, 0) == FNM_NOMATCH) fnmatch(search, mi->text, 0) == FNM_NOMATCH)
continue; continue;
TAILQ_FOREACH(mj, resultq, resultentry) { TAILQ_FOREACH(mj, resultq, resultentry) {
r = strcasecmp(mi->text, mj->text); r = strcmp(mi->text, mj->text);
if (r < 0) if (r < 0)
TAILQ_INSERT_BEFORE(mj, mi, resultentry); TAILQ_INSERT_BEFORE(mj, mi, resultentry);
if (r <= 0) if (r <= 0)