From d91571c567fc74c422d766fd2613c9ae23ccbc36 Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 20 Jan 2014 21:34:32 +0000 Subject: constify and rename some confusing variables around cmdq. --- kbfunc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kbfunc.c') diff --git a/kbfunc.c b/kbfunc.c index 5f73129..1d8837c 100644 --- a/kbfunc.c +++ b/kbfunc.c @@ -178,11 +178,11 @@ kbfunc_menu_search(struct client_ctx *cc, union arg *arg) TAILQ_INIT(&menuq); TAILQ_FOREACH(cmd, &Conf.cmdq, entry) - menuq_add(&menuq, cmd, "%s", cmd->label); + menuq_add(&menuq, cmd, "%s", cmd->name); if ((mi = menu_filter(sc, &menuq, "application", NULL, 0, search_match_text, NULL)) != NULL) - u_spawn(((struct cmd *)mi->ctx)->image); + u_spawn(((struct cmd *)mi->ctx)->path); menuq_clear(&menuq); } -- cgit 1.4.1