aboutsummaryrefslogtreecommitdiff
path: root/sway/criteria.c
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-05-11 10:42:24 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-05-11 10:42:24 +1000
commit0bf0a4fa4049cbabeb797536e549640ec5235454 (patch)
tree4cfe63704f74ce884723e06c9b7deecfc02600dc /sway/criteria.c
parent3b0c26d149dfe5e05df338692db8255a01f0998d (diff)
Don't unescape \\ in criteria
Diffstat (limited to 'sway/criteria.c')
-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) {
char *readhead = value;
char *writehead = copy;
while (*readhead) {
- if (*readhead == '\\' &&
- (*(readhead + 1) == '"' || *(readhead + 1) == '\\')) {
+ if (*readhead == '\\' && *(readhead + 1) == '"') {
// skip the slash
++readhead;
}