Fix partial matches with xterm-keys on, from m0viefreak dot cm at

googlemail dot com.
This commit is contained in:
nicm 2014-01-31 11:20:28 +00:00
parent 1935eb5c1e
commit 72d1be5ddd

View File

@ -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);