mirror of
https://github.com/tmate-io/tmate.git
synced 2026-07-25 20:04:02 +00:00
Accept a full key match (not a partial) even if there is data left in
the buffer.
This commit is contained in:
parent
593bcbdd49
commit
4de04fac2c
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: tty-keys.c,v 1.55 2009-12-18 18:57:00 tcunha Exp $ */
|
||||
/* $Id: tty-keys.c,v 1.56 2010-03-15 20:44:51 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue