aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands.c
diff options
context:
space:
mode:
authorLibravatar Philipe Goulet <phil.gou69@hotmail.com>2019-03-22 20:51:10 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-03-24 19:04:15 -0600
commit8d2c982f3fea5b7f83680809bf4d986edfd625a3 (patch)
tree40aa0a8c4d01c0f59274e0bbb171c12be528cc68 /sway/commands.c
parentUpdated the french readme (#3964) (diff)
downloadsway-8d2c982f3fea5b7f83680809bf4d986edfd625a3.tar.gz
sway-8d2c982f3fea5b7f83680809bf4d986edfd625a3.tar.zst
sway-8d2c982f3fea5b7f83680809bf4d986edfd625a3.zip
Fix #3924
Removes "unescape_string(argv[i]);". Since "do_var_replacement(argv[i])" never adds escape characters, it is both wrong and unnecessary to remove escape characters on the next line. This caused characters that were meant to be escaped to not be anymore.
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 18b95c73..0d9460a2 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -276,7 +276,6 @@ list_t *execute_command(char *_exec, struct sway_seat *seat,
276 // Var replacement, for all but first argument of set 276 // Var replacement, for all but first argument of set
277 for (int i = handler->handle == cmd_set ? 2 : 1; i < argc; ++i) { 277 for (int i = handler->handle == cmd_set ? 2 : 1; i < argc; ++i) {
278 argv[i] = do_var_replacement(argv[i]); 278 argv[i] = do_var_replacement(argv[i]);
279 unescape_string(argv[i]);
280 } 279 }
281 280
282 if (!config->handler_context.using_criteria) { 281 if (!config->handler_context.using_criteria) {