summaryrefslogtreecommitdiffstats
path: root/cmd-bind-key.c
diff options
context:
space:
mode:
authornicm <nicm>2021-08-25 09:18:08 +0000
committernicm <nicm>2021-08-25 09:18:08 +0000
commita3c6057b514eb575ba40fc2f8b2d471aea9909fc (patch)
tree261aabf34c528e6ca7e63efcd1c4efef4a7f60e8 /cmd-bind-key.c
parent03d173cbd8e72c356512a0e19e356b07d518627a (diff)
bind-key needs to allow commands for any argument for the moment.
Diffstat (limited to 'cmd-bind-key.c')
-rw-r--r--cmd-bind-key.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd-bind-key.c b/cmd-bind-key.c
index 778d655b..be0ae40e 100644
--- a/cmd-bind-key.c
+++ b/cmd-bind-key.c
@@ -45,12 +45,10 @@ const struct cmd_entry cmd_bind_key_entry = {
};
static enum args_parse_type
-cmd_bind_key_args_parse(__unused struct args *args, u_int idx,
+cmd_bind_key_args_parse(__unused struct args *args, __unused u_int idx,
__unused char **cause)
{
- if (idx == 1)
- return (ARGS_PARSE_COMMANDS_OR_STRING);
- return (ARGS_PARSE_STRING);
+ return (ARGS_PARSE_COMMANDS_OR_STRING);
}
static enum cmd_retval