diff options
-rw-r--r-- | sway/criteria.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/criteria.c b/sway/criteria.c index 6abe24af..7da790e6 100644 --- a/sway/criteria.c +++ b/sway/criteria.c | |||
@@ -280,8 +280,7 @@ static void unescape(char *value) { | |||
280 | char *readhead = value; | 280 | char *readhead = value; |
281 | char *writehead = copy; | 281 | char *writehead = copy; |
282 | while (*readhead) { | 282 | while (*readhead) { |
283 | if (*readhead == '\\' && | 283 | if (*readhead == '\\' && *(readhead + 1) == '"') { |
284 | (*(readhead + 1) == '"' || *(readhead + 1) == '\\')) { | ||
285 | // skip the slash | 284 | // skip the slash |
286 | ++readhead; | 285 | ++readhead; |
287 | } | 286 | } |