aboutsummaryrefslogtreecommitdiff
path: root/sway/commands.c
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-01-08 23:16:57 +0100
committerMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-01-08 23:30:18 +0100
commitcb8ac7fd4a0c8c11f97cc913391c4d04a7b4277b (patch)
tree91b7b34930d8fa55cefa357a19ee52a14480927e /sway/commands.c
parente2d49afb4a9cf1c333cbb1e18360026508b79a60 (diff)
Unescape string after doing var replacement
Fix #426
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 6a316596..f3f7efbf 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -2462,6 +2462,7 @@ struct cmd_results *config_command(char *exec, enum cmd_status block) {
// Var replacement, for all but first argument of set
for (i = handler->handle == cmd_set ? 2 : 1; i < argc; ++i) {
argv[i] = do_var_replacement(argv[i]);
+ unescape_string(argv[i]);
}
/* Strip quotes for first argument.
* TODO This part needs to be handled much better */