From 315bca176c97716f8a4dabbec453efaad9ce1b15 Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Wed, 28 Nov 2018 01:28:03 -0500 Subject: Do not strip quotes for cmd_mode Like with cmd_bindsym and cmd_bindcode, the quotes should not be stripped for cmd_mode. cmd_mode performs its own stripping for the mode name and the only valid subcommands are cmd_bindsym and cmd_bindcode. --- sway/commands.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sway/commands.c b/sway/commands.c index bffc18f6..bdf9fe83 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -420,6 +420,7 @@ struct cmd_results *config_command(char *exec) { // Strip quotes and unescape the string for (int i = handler->handle == cmd_set ? 2 : 1; i < argc; ++i) { if (handler->handle != cmd_exec && handler->handle != cmd_exec_always + && handler->handle != cmd_mode && handler->handle != cmd_bindsym && handler->handle != cmd_bindcode && handler->handle != cmd_set -- cgit v1.2.3-54-g00ecf