summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-bind-key.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2014-10-20 22:29:25 +0000
committernicm <nicm@openbsd.org>2014-10-20 22:29:25 +0000
commitf0dcb22a301071b1ca4e920844353f5b9c286966 (patch)
treea10614df0c36dbf41dbf749899667701cb7b3a27 /usr.bin/tmux/cmd-bind-key.c
parentfix a regression that i caused in rev. 1.26: *do* report the size of (diff)
downloadwireguard-openbsd-f0dcb22a301071b1ca4e920844353f5b9c286966.tar.xz
wireguard-openbsd-f0dcb22a301071b1ca4e920844353f5b9c286966.zip
Instead of setting up the default keys by building the key struct
directly with a helper function in the cmd_entry, include a table of bind-key commands and pass them through the command parser and a temporary cmd_q. As well as being smaller, this will allow default bindings to be command sequences which will probably be needed soon.
Diffstat (limited to 'usr.bin/tmux/cmd-bind-key.c')
-rw-r--r--usr.bin/tmux/cmd-bind-key.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-bind-key.c b/usr.bin/tmux/cmd-bind-key.c
index 7127cb9fcca..243741fbd4a 100644
--- a/usr.bin/tmux/cmd-bind-key.c
+++ b/usr.bin/tmux/cmd-bind-key.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-bind-key.c,v 1.18 2014/05/14 06:45:35 nicm Exp $ */
+/* $OpenBSD: cmd-bind-key.c,v 1.19 2014/10/20 22:29:25 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -36,7 +36,6 @@ const struct cmd_entry cmd_bind_key_entry = {
"cnrt:", 1, -1,
"[-cnr] [-t mode-table] key command [arguments]",
0,
- NULL,
cmd_bind_key_exec
};