diff options
author | Thomas Plaçais <thomas.placais@outlook.com> | 2018-06-27 15:40:44 +0200 |
---|---|---|
committer | Thomas Plaçais <thomas.placais@outlook.com> | 2018-06-27 15:58:53 +0200 |
commit | 9a3c6d2dbe0a002b3c9dc5921f20d83fec8ceed6 (patch) | |
tree | e937c31004c1cd0954fd014f5e0a2da5793fd4de /sway/commands/input.c | |
parent | Merge pull request #2145 from emersion/xwayland-wants-float (diff) | |
download | sway-9a3c6d2dbe0a002b3c9dc5921f20d83fec8ceed6.tar.gz sway-9a3c6d2dbe0a002b3c9dc5921f20d83fec8ceed6.tar.zst sway-9a3c6d2dbe0a002b3c9dc5921f20d83fec8ceed6.zip |
Check if command input has at least 2 arguments
Diffstat (limited to 'sway/commands/input.c')
-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[] = { | |||
31 | 31 | ||
32 | struct cmd_results *cmd_input(int argc, char **argv) { | 32 | struct cmd_results *cmd_input(int argc, char **argv) { |
33 | struct cmd_results *error = NULL; | 33 | struct cmd_results *error = NULL; |
34 | if ((error = checkarg(argc, "input", EXPECTED_AT_LEAST, 1))) { | 34 | if ((error = checkarg(argc, "input", EXPECTED_AT_LEAST, 2))) { |
35 | return error; | 35 | return error; |
36 | } | 36 | } |
37 | 37 | ||