From 71d55b5fbd537c425ecee3649e183818b220d5ef Mon Sep 17 00:00:00 2001 From: okan Date: Tue, 30 Jun 2015 18:54:12 +0000 Subject: Introduce a callback for cmd menu printing, special-casing 'lock' and 'term'. --- kbfunc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kbfunc.c') diff --git a/kbfunc.c b/kbfunc.c index 714d37f..872af3a 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.109 2015/06/29 14:24:40 okan Exp $ + * $OpenBSD: kbfunc.c,v 1.110 2015/06/30 18:54:12 okan Exp $ */ #include @@ -181,7 +181,7 @@ kbfunc_menu_cmd(struct client_ctx *cc, union arg *arg) menuq_add(&menuq, cmd, "%s", cmd->name); if ((mi = menu_filter(sc, &menuq, "application", NULL, 0, - search_match_text, NULL)) != NULL) + search_match_text, search_print_cmd)) != NULL) u_spawn(((struct cmd *)mi->ctx)->path); menuq_clear(&menuq); -- cgit v1.2.3-2-gb3c3