diff options
author | emersion <contact@emersion.fr> | 2018-06-27 15:13:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-27 15:13:14 +0100 |
commit | 1579fc1d91468ce4d29701b4b1c8be6e635f21ff (patch) | |
tree | e937c31004c1cd0954fd014f5e0a2da5793fd4de /sway/commands | |
parent | 152ccd7fb14dc0f09f9c6f902f727f7addf7657a (diff) | |
parent | 9a3c6d2dbe0a002b3c9dc5921f20d83fec8ceed6 (diff) |
Merge pull request #2168 from BlueGone/input-cmd-arg-nb
Check if command input has at least 2 arguments
Diffstat (limited to 'sway/commands')
-rw-r--r-- | sway/commands/input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/input.c b/sway/commands/input.c index 22a0bb7c..678c57c4 100644 --- a/sway/commands/input.c +++ b/sway/commands/input.c @@ -31,7 +31,7 @@ static struct cmd_handler input_handlers[] = { struct cmd_results *cmd_input(int argc, char **argv) { struct cmd_results *error = NULL; - if ((error = checkarg(argc, "input", EXPECTED_AT_LEAST, 1))) { + if ((error = checkarg(argc, "input", EXPECTED_AT_LEAST, 2))) { return error; } |