cvsimport

This commit is contained in:
okan 2013-03-09 21:55:56 +00:00
commit cfc19dba7e

View File

@ -224,8 +224,7 @@ search_match_exec(struct menu_q *menuq, struct menu_q *resultq, char *search)
if (strsubmatch(search, mi->text, 1) == 0 &&
fnmatch(search, mi->text, 0) == FNM_NOMATCH)
continue;
for (mj = TAILQ_FIRST(resultq); mj != NULL;
mj = TAILQ_NEXT(mj, resultentry)) {
TAILQ_FOREACH(mj, resultq, resultentry) {
if (strcasecmp(mi->text, mj->text) < 0) {
TAILQ_INSERT_BEFORE(mj, mi, resultentry);
break;