summary refs log tree commit diff
path: root/kbfunc.c
diff options
context:
space:
mode:
authorokan <okan>2015-08-28 12:07:28 +0000
committerokan <okan>2015-08-28 12:07:28 +0000
commit47a10cc05549b0a94e3606ca7be9fe626754d12d (patch)
treec8aa13e89e95d6cfe653ff47cd24300d45d2362e /kbfunc.c
parent28d4001ecaf57a722ec418f8b8b955242402e5a2 (diff)
downloadcwm-47a10cc05549b0a94e3606ca7be9fe626754d12d.tar.gz
cwm-47a10cc05549b0a94e3606ca7be9fe626754d12d.tar.xz
cwm-47a10cc05549b0a94e3606ca7be9fe626754d12d.zip
Lost fix from r1.112; add comment.
Reported (again!) by Peter Kane.
Diffstat (limited to 'kbfunc.c')
-rw-r--r--kbfunc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kbfunc.c b/kbfunc.c
index 8d220a6..c23e8f8 100644
--- a/kbfunc.c
+++ b/kbfunc.c
@@ -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,