If a title contains a percent sign, make sure it is not swallowed by parsing the title_format (if one is set on the window).
This commit is contained in:
parent
bbefa2a16c
commit
1f79c44cde
|
@ -396,6 +396,8 @@ i3String *window_parse_title_format(i3Window *win) {
|
||||||
} else if (STARTS_WITH(walk + 1, "instance")) {
|
} else if (STARTS_WITH(walk + 1, "instance")) {
|
||||||
outwalk += sprintf(outwalk, "%s", escaped_instance);
|
outwalk += sprintf(outwalk, "%s", escaped_instance);
|
||||||
walk += strlen("instance");
|
walk += strlen("instance");
|
||||||
|
} else {
|
||||||
|
*(outwalk++) = *walk;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*outwalk = '\0';
|
*outwalk = '\0';
|
||||||
|
|
Loading…
Reference in New Issue