mirror of
https://github.com/tmate-io/tmate.git
synced 2024-12-23 23:29:15 +01:00
Fix partial matches with xterm-keys on, from m0viefreak dot cm at
googlemail dot com.
This commit is contained in:
parent
1935eb5c1e
commit
72d1be5ddd
@ -133,7 +133,7 @@ xterm_keys_match(const char *template, const char *buf, size_t len)
|
||||
do {
|
||||
if (*template != '_' && buf[pos] != *template)
|
||||
return (-1);
|
||||
} while (pos++ != len && *++template != '\0');
|
||||
} while (*++template != '\0' && ++pos != len);
|
||||
|
||||
if (*template != '\0') /* partial */
|
||||
return (1);
|
||||
|
Loading…
Reference in New Issue
Block a user