mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 03:08:46 +00:00
Use :: for escaping : in terminal-overrides not \:.
This commit is contained in:
parent
4b9e76aaaa
commit
018f1b8a80
11
tty-term.c
11
tty-term.c
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user