Introduce a callback for cmd menu printing, special-casing 'lock' and

'term'.
This commit is contained in:
okan
2015-06-30 18:54:12 +00:00
parent c87953eb64
commit 5d8027b75d
4 changed files with 17 additions and 2 deletions

View File

@@ -239,7 +239,7 @@ mousefunc_menu_cmd(struct client_ctx *cc, union arg *arg)
menuq_add(&menuq, cmd, "%s", cmd->name);
if ((mi = menu_filter(sc, &menuq, NULL, NULL, CWM_MENU_LIST,
NULL, NULL)) != NULL)
NULL, search_print_cmd)) != NULL)
u_spawn(((struct cmd *)mi->ctx)->path);
menuq_clear(&menuq);