mirror of
https://github.com/tmux/tmux.git
synced 2024-12-25 02:48:47 +00:00
Fix behaviour with \007 (used the wrong tree for last change).
This commit is contained in:
parent
c0031f8b85
commit
b41892622d
10
tty-keys.c
10
tty-keys.c
@ -1528,13 +1528,11 @@ tty_keys_colours(struct tty *tty, const char *buf, size_t len, size_t *size)
|
|||||||
}
|
}
|
||||||
if (i == (sizeof tmp) - 1)
|
if (i == (sizeof tmp) - 1)
|
||||||
return (-1);
|
return (-1);
|
||||||
if (tmp[i] == '\007') {
|
if (tmp[i - 1] == '\033')
|
||||||
*size = 5 + i;
|
|
||||||
tmp[i] = '\0';
|
|
||||||
} else {
|
|
||||||
*size = 6 + i;
|
|
||||||
tmp[i - 1] = '\0';
|
tmp[i - 1] = '\0';
|
||||||
}
|
else
|
||||||
|
tmp[i] = '\0';
|
||||||
|
*size = 6 + i;
|
||||||
|
|
||||||
n = colour_parseX11(tmp);
|
n = colour_parseX11(tmp);
|
||||||
if (n != -1 && buf[3] == '0') {
|
if (n != -1 && buf[3] == '0') {
|
||||||
|
Loading…
Reference in New Issue
Block a user