From 02779e64b89267cc78b21114642391411adc897e Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 3 Jul 2015 17:11:16 +0000 Subject: [PATCH] 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. --- kbfunc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kbfunc.c b/kbfunc.c index 74db167..a107b95 100644 --- a/kbfunc.c +++ b/kbfunc.c @@ -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)