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

googlemail dot com.
pull/1/head
nicm 2014-01-31 11:20:28 +00:00
parent 1935eb5c1e
commit 72d1be5ddd
1 changed files with 1 additions and 1 deletions

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