mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
no longer need to pass down format strings after introducing search_print_cmd
This commit is contained in:
parent
5d8027b75d
commit
8efaf33cfb
2
kbfunc.c
2
kbfunc.c
@ -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, "%s", cmd->name);
|
||||
menuq_add(&menuq, cmd, NULL);
|
||||
|
||||
if ((mi = menu_filter(sc, &menuq, "application", NULL, 0,
|
||||
search_match_text, search_print_cmd)) != NULL)
|
||||
|
@ -236,7 +236,7 @@ mousefunc_menu_cmd(struct client_ctx *cc, union arg *arg)
|
||||
|
||||
TAILQ_INIT(&menuq);
|
||||
TAILQ_FOREACH(cmd, &Conf.cmdq, entry)
|
||||
menuq_add(&menuq, cmd, "%s", cmd->name);
|
||||
menuq_add(&menuq, cmd, NULL);
|
||||
|
||||
if ((mi = menu_filter(sc, &menuq, NULL, NULL, CWM_MENU_LIST,
|
||||
NULL, search_print_cmd)) != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user