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.
This commit is contained in:
Philipe Goulet 2019-03-22 20:51:10 -04:00 committed by Drew DeVault
parent c3d7036867
commit 8d2c982f3f

View file

@ -276,7 +276,6 @@ list_t *execute_command(char *_exec, struct sway_seat *seat,
// Var replacement, for all but first argument of set // Var replacement, for all but first argument of set
for (int i = handler->handle == cmd_set ? 2 : 1; i < argc; ++i) { for (int i = handler->handle == cmd_set ? 2 : 1; i < argc; ++i) {
argv[i] = do_var_replacement(argv[i]); argv[i] = do_var_replacement(argv[i]);
unescape_string(argv[i]);
} }
if (!config->handler_context.using_criteria) { if (!config->handler_context.using_criteria) {