From 1e1971d6873b29337fd9e50dd5d4bebd02e87f1b Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 25 Aug 2021 09:18:08 +0000 Subject: [PATCH] bind-key needs to allow commands for any argument for the moment. --- usr.bin/tmux/cmd-bind-key.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/usr.bin/tmux/cmd-bind-key.c b/usr.bin/tmux/cmd-bind-key.c index 988c3a4fda6..418e0ad3f2e 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.44 2021/08/25 08:51:55 nicm Exp $ */ +/* $OpenBSD: cmd-bind-key.c,v 1.45 2021/08/25 09:18:08 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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 -- 2.20.1