aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Eric Engestrom <eric@engestrom.ch>2021-08-13 21:41:55 +0100
committerLibravatar Simon Ser <contact@emersion.fr>2021-08-14 10:46:17 +0200
commitb17cf58a4dfcb1fbcbc039bf3032119764fd82b4 (patch)
tree98c34a281d22d7807857b705ca0c5930ef81f0f2
parentFallback to other output modes if preferred mode fails (diff)
downloadsway-b17cf58a4dfcb1fbcbc039bf3032119764fd82b4.tar.gz
sway-b17cf58a4dfcb1fbcbc039bf3032119764fd82b4.tar.zst
sway-b17cf58a4dfcb1fbcbc039bf3032119764fd82b4.zip
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.c4
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,
560 free_switch_binding(binding); 560 free_switch_binding(binding);
561 return cmd_results_new(CMD_FAILURE, 561 return cmd_results_new(CMD_FAILURE,
562 "Invalid %s command " 562 "Invalid %s command "
563 "(expected switch state: unknown state %d)", 563 "(expected switch state: unknown state %s)",
564 bindtype, split->items[0]); 564 bindtype, split->items[1]);
565 } 565 }
566 list_free_items_and_destroy(split); 566 list_free_items_and_destroy(split);
567 567