diff options
Diffstat (limited to 'xterm-keys.c')
-rw-r--r-- | xterm-keys.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xterm-keys.c b/xterm-keys.c index 6916552f..af3f1e76 100644 --- a/xterm-keys.c +++ b/xterm-keys.c @@ -131,7 +131,9 @@ xterm_keys_match(const char *template, const char *buf, size_t len) pos = 0; do { - if (*template != '_' && buf[pos] != *template) + if (*template == '_' && buf[pos] >= '1' && buf[pos] <= '8') + continue; + if (buf[pos] != *template) return (-1); } while (*++template != '\0' && ++pos != len); |