Use :: for escaping : in terminal-overrides not \:.

pull/1545/head
Nicholas Marriott 2018-10-08 19:42:55 +01:00
parent 4b9e76aaaa
commit 018f1b8a80
1 changed files with 7 additions and 4 deletions

View File

@ -312,10 +312,13 @@ tty_term_override_next(const char *s, size_t *offset)
if (s[at] == '\0')
return (NULL);
while (s[at] != '\0' && s[at] != ':') {
if (s[at] == '\\' && s[at + 1] == ':') {
value[n++] = ':';
at += 2;
while (s[at] != '\0') {
if (s[at] == ':') {
if (s[at + 1] == ':') {
value[n++] = ':';
at += 2;
} else
break;
} else {
value[n++] = s[at];
at++;