aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-06-27 15:13:14 +0100
committerLibravatar GitHub <noreply@github.com>2018-06-27 15:13:14 +0100
commit1579fc1d91468ce4d29701b4b1c8be6e635f21ff (patch)
treee937c31004c1cd0954fd014f5e0a2da5793fd4de
parentMerge pull request #2145 from emersion/xwayland-wants-float (diff)
parentCheck if command input has at least 2 arguments (diff)
downloadsway-1579fc1d91468ce4d29701b4b1c8be6e635f21ff.tar.gz
sway-1579fc1d91468ce4d29701b4b1c8be6e635f21ff.tar.zst
sway-1579fc1d91468ce4d29701b4b1c8be6e635f21ff.zip
Merge pull request #2168 from BlueGone/input-cmd-arg-nb
Check if command input has at least 2 arguments
-rw-r--r--sway/commands/input.c2
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
32struct cmd_results *cmd_input(int argc, char **argv) { 32struct 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