aboutsummaryrefslogtreecommitdiffstats
path: root/kbfunc.c
diff options
context:
space:
mode:
authorokan2015-06-30 18:54:12 +0000
committerokan2015-06-30 18:54:12 +0000
commit71d55b5fbd537c425ecee3649e183818b220d5ef (patch)
treeb689288dc8cabf59d400be88e10bd2bcd7605fa1 /kbfunc.c
parent931b7e89b025a354af81008fc7f799903ea16bee (diff)
downloadcwm-71d55b5fbd537c425ecee3649e183818b220d5ef.tar.gz
Introduce a callback for cmd menu printing, special-casing 'lock' and
'term'.
Diffstat (limited to 'kbfunc.c')
-rw-r--r--kbfunc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kbfunc.c b/kbfunc.c
index 714d37f..872af3a 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.109 2015/06/29 14:24:40 okan Exp $
+ * $OpenBSD: kbfunc.c,v 1.110 2015/06/30 18:54:12 okan Exp $
*/
#include <sys/types.h>
@@ -181,7 +181,7 @@ kbfunc_menu_cmd(struct client_ctx *cc, union arg *arg)
menuq_add(&menuq, cmd, "%s", cmd->name);
if ((mi = menu_filter(sc, &menuq, "application", NULL, 0,
- search_match_text, NULL)) != NULL)
+ search_match_text, search_print_cmd)) != NULL)
u_spawn(((struct cmd *)mi->ctx)->path);
menuq_clear(&menuq);