mirror of
https://github.com/tmate-io/tmate.git
synced 2025-02-24 06:11:01 +01:00
Accept a full key match (not a partial) even if there is data left in
the buffer.
This commit is contained in:
parent
4baafd8126
commit
021037c419
@ -408,7 +408,7 @@ tty_keys_find1(struct tty_key *tk, const char *buf, size_t len, size_t *size)
|
|||||||
(*size)++;
|
(*size)++;
|
||||||
|
|
||||||
/* At the end of the string, return the current node. */
|
/* At the end of the string, return the current node. */
|
||||||
if (len == 0)
|
if (len == 0 || (tk->next == NULL && tk->key != KEYC_NONE))
|
||||||
return (tk);
|
return (tk);
|
||||||
|
|
||||||
/* Move into the next tree for the following character. */
|
/* Move into the next tree for the following character. */
|
||||||
|
Loading…
Reference in New Issue
Block a user