diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-07-28 17:05:10 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-07-28 17:05:10 +0000 |
commit | f596be99505a0191cac9f314fb1b71528c5080b4 (patch) | |
tree | 1e765f4841da1107e11322d7ba62445f61ec67af /cmd-list-keys.c | |
parent | 9e5d585ba4b0af6badf559cc7b275a23be8947c2 (diff) | |
download | rtmux-f596be99505a0191cac9f314fb1b71528c5080b4.tar.gz rtmux-f596be99505a0191cac9f314fb1b71528c5080b4.tar.bz2 rtmux-f596be99505a0191cac9f314fb1b71528c5080b4.zip |
Final pieces of mode key rebinding: bind-key and unbind-key now accept a -t
argument to modify a table.
Diffstat (limited to 'cmd-list-keys.c')
-rw-r--r-- | cmd-list-keys.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cmd-list-keys.c b/cmd-list-keys.c index 0a22e82c..db64e244 100644 --- a/cmd-list-keys.c +++ b/cmd-list-keys.c @@ -92,11 +92,7 @@ cmd_list_keys_table(struct cmd *self, struct cmd_ctx *ctx) const char *key, *cmdstr, *mode; int width, keywidth; - for (mtab = mode_key_tables; mtab->name != NULL; mtab++) { - if (strcasecmp(data->target, mtab->name) == 0) - break; - } - if (mtab->name == NULL) { + if ((mtab = mode_key_findtable(data->target)) == NULL) { ctx->error(ctx, "unknown key table: %s", data->target); return (-1); } |