mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2025-01-01 06:20:17 +01:00
Don't unescape \\ in criteria
This commit is contained in:
parent
3b0c26d149
commit
0bf0a4fa40
1 changed files with 1 additions and 2 deletions
|
@ -280,8 +280,7 @@ static void unescape(char *value) {
|
||||||
char *readhead = value;
|
char *readhead = value;
|
||||||
char *writehead = copy;
|
char *writehead = copy;
|
||||||
while (*readhead) {
|
while (*readhead) {
|
||||||
if (*readhead == '\\' &&
|
if (*readhead == '\\' && *(readhead + 1) == '"') {
|
||||||
(*(readhead + 1) == '"' || *(readhead + 1) == '\\')) {
|
|
||||||
// skip the slash
|
// skip the slash
|
||||||
++readhead;
|
++readhead;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue