sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 1579fc1d91468ce4d29701b4b1c8be6e635f21ff
parent 152ccd7fb14dc0f09f9c6f902f727f7addf7657a
Author: emersion <contact@emersion.fr>
Date:   Wed, 27 Jun 2018 15:13:14 +0100

Merge pull request #2168 from BlueGone/input-cmd-arg-nb

Check if command input has at least 2 arguments
Diffstat:
Msway/commands/input.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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; }