From 3aa18776bc94653a1035dadc354dbeeea8f399de Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 3 Jul 2015 17:11:16 +0000 Subject: 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kbfunc.c') diff --git a/kbfunc.c b/kbfunc.c index ccdd1c2..d3c54a0 100644 --- a/kbfunc.c +++ b/kbfunc.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: kbfunc.c,v 1.111 2015/06/30 19:02:24 okan Exp $ + * $OpenBSD: kbfunc.c,v 1.112 2015/07/03 17:11:16 okan Exp $ */ #include @@ -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) -- cgit v1.2.3-2-gb3c3