revert previous; seems search_match_text() needs mi->text pre-populated.

(only used in one place, application menu searching); re-visit later.

broken application menu searching reported by Peter Kane.
This commit is contained in:
okan 2015-07-03 17:11:16 +00:00
parent cb900def7f
commit 02779e64b8

View File

@ -178,7 +178,7 @@ kbfunc_menu_cmd(struct client_ctx *cc, union arg *arg)
TAILQ_INIT(&menuq);
TAILQ_FOREACH(cmd, &Conf.cmdq, entry)
menuq_add(&menuq, cmd, NULL);
menuq_add(&menuq, cmd, "%s", cmd->name);
if ((mi = menu_filter(sc, &menuq, "application", NULL, 0,
search_match_text, search_print_cmd)) != NULL)