aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan2015-07-03 17:11:16 +0000
committerokan2015-07-03 17:11:16 +0000
commit3aa18776bc94653a1035dadc354dbeeea8f399de (patch)
tree18916205af5019d354cde811f1c9dd8d247c6ea4
parent066f93f7719e2667a64ac983db612410d7d55916 (diff)
downloadcwm-3aa18776bc94653a1035dadc354dbeeea8f399de.tar.gz
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.
Diffstat (limited to '')
-rw-r--r--kbfunc.c4
1 files changed, 2 insertions, 2 deletions
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 <sys/types.h>
@@ -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)