mirror of
https://github.com/tmate-io/tmate.git
synced 2025-01-11 16:38:47 +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 {
|
do {
|
||||||
if (*template != '_' && buf[pos] != *template)
|
if (*template != '_' && buf[pos] != *template)
|
||||||
return (-1);
|
return (-1);
|
||||||
} while (pos++ != len && *++template != '\0');
|
} while (*++template != '\0' && ++pos != len);
|
||||||
|
|
||||||
if (*template != '\0') /* partial */
|
if (*template != '\0') /* partial */
|
||||||
return (1);
|
return (1);
|
||||||
|
Loading…
Reference in New Issue
Block a user