mirror of
https://github.com/tmux/tmux.git
synced 2026-01-09 22:30:19 +00:00
If cannot find a terminator for palette responses, treat as a partial
key not complete. GitHub issue 4749.
This commit is contained in:
@@ -1750,7 +1750,9 @@ tty_keys_palette(struct tty *tty, const char *buf, size_t len, size_t *size)
|
||||
|
||||
/* Copy the rest up to \033\ or \007. */
|
||||
start = (endptr - buf) + 1;
|
||||
for (i = start; i < len && i - start < sizeof tmp; i++) {
|
||||
for (i = start; i - start < sizeof tmp; i++) {
|
||||
if (i == len)
|
||||
return (1);
|
||||
if (buf[i - 1] == '\033' && buf[i] == '\\')
|
||||
break;
|
||||
if (buf[i] == '\007')
|
||||
|
||||
Reference in New Issue
Block a user