diff options
author | Eric Engestrom <eric@engestrom.ch> | 2021-08-13 21:41:55 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-08-14 10:46:17 +0200 |
commit | b17cf58a4dfcb1fbcbc039bf3032119764fd82b4 (patch) | |
tree | 98c34a281d22d7807857b705ca0c5930ef81f0f2 | |
parent | 4cdc4ac63aeb7f5e17c42ad3317978bd31e1fde2 (diff) |
cmd_bind_or_unbind_switch: fix copy/paste typo error message
`[0]` is the switch type, not its state; we want `[1]` for that, and
it's a string not an int :)
-rw-r--r-- | sway/commands/bind.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands/bind.c b/sway/commands/bind.c index 4c67b3ce..25be415e 100644 --- a/sway/commands/bind.c +++ b/sway/commands/bind.c @@ -560,8 +560,8 @@ struct cmd_results *cmd_bind_or_unbind_switch(int argc, char **argv, free_switch_binding(binding); return cmd_results_new(CMD_FAILURE, "Invalid %s command " - "(expected switch state: unknown state %d)", - bindtype, split->items[0]); + "(expected switch state: unknown state %s)", + bindtype, split->items[1]); } list_free_items_and_destroy(split); |