diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2018-10-08 19:42:55 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2018-10-08 19:42:55 +0100 |
commit | 018f1b8a803f15910781dc9894fbd168cfa50943 (patch) | |
tree | 49f1f4e418bc04a3ba0bd599146286160e886a8a /tty-term.c | |
parent | 4b9e76aaaa2dffc01a796fe2ee6edafdfce814a9 (diff) |
Use :: for escaping : in terminal-overrides not \:.
Diffstat (limited to 'tty-term.c')
-rw-r--r-- | tty-term.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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++; |