From 7d8a5a92b3e6bba227470f31a83772cf42b00fa9 Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 28 Aug 2015 12:07:28 +0000 Subject: Lost fix from r1.112; add comment. Reported (again!) by Peter Kane. --- kbfunc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kbfunc.c b/kbfunc.c index 0e514ad..2c2bd68 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.116 2015/08/27 18:40:09 okan Exp $ + * $OpenBSD: kbfunc.c,v 1.117 2015/08/28 12:07:28 okan Exp $ */ #include @@ -181,7 +181,8 @@ kbfunc_menu_cmd(struct client_ctx *cc, union arg *arg) if ((strcmp(cmd->name, "lock") == 0) || (strcmp(cmd->name, "term") == 0)) continue; - menuq_add(&menuq, cmd, NULL); + /* search_match_text() needs mi->text */ + menuq_add(&menuq, cmd, "%s", cmd->name); } if ((mi = menu_filter(sc, &menuq, "application", NULL, 0, -- cgit v1.2.3-2-gb3c3