aboutsummaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-11 10:42:24 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-11 10:42:24 +1000
commit0bf0a4fa4049cbabeb797536e549640ec5235454 (patch)
tree4cfe63704f74ce884723e06c9b7deecfc02600dc /sway
parentOverhaul criteria implementation (diff)
downloadsway-0bf0a4fa4049cbabeb797536e549640ec5235454.tar.gz
sway-0bf0a4fa4049cbabeb797536e549640ec5235454.tar.zst
sway-0bf0a4fa4049cbabeb797536e549640ec5235454.zip
Don't unescape \\ in criteria
Diffstat (limited to 'sway')
-rw-r--r--sway/criteria.c3
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 }