Accept a full key match (not a partial) even if there is data left in

the buffer.
pull/1/head
Nicholas Marriott 2010-03-22 19:03:52 +00:00
parent 4baafd8126
commit 021037c419
1 changed files with 1 additions and 1 deletions

View File

@ -408,7 +408,7 @@ tty_keys_find1(struct tty_key *tk, const char *buf, size_t len, size_t *size)
(*size)++;
/* 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);
/* Move into the next tree for the following character. */