diff options
author | Ryan Dwyer <[email protected]> | 2018-10-23 20:33:40 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2018-10-23 20:33:40 +1000 |
commit | e33671fd9a478a917250b2e3b889c9ee0e49c65c (patch) | |
tree | 32f4a9782328486f529c09fe2bb8092c25b9993d /sway/commands/bind.c | |
parent | 970501f05e8a1835b880953888ad3022fb2e9ada (diff) | |
parent | 9227cb7d673b012a0c6730800d528f9d729972b6 (diff) |
Merge pull request #2941 from ianyfan/commands
commands: clean up checkargs function +other small changes
Diffstat (limited to 'sway/commands/bind.c')
-rw-r--r-- | sway/commands/bind.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/bind.c b/sway/commands/bind.c index 5832d01e..a9de227f 100644 --- a/sway/commands/bind.c +++ b/sway/commands/bind.c @@ -145,7 +145,7 @@ static struct cmd_results *cmd_bindsym_or_bindcode(int argc, char **argv, const char *bindtype = bindcode ? "bindcode" : "bindsym"; struct cmd_results *error = NULL; - if ((error = checkarg(argc, bindtype, EXPECTED_MORE_THAN, 1))) { + if ((error = checkarg(argc, bindtype, EXPECTED_AT_LEAST, 2))) { return error; } |