diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2014-02-17 18:09:25 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2014-02-17 18:09:25 +0000 |
commit | d325104d10b699e8c85cddd7ee9b7d2273c8cf40 (patch) | |
tree | ed3512ff09e388cb3f91c82ea5bad6a13d745a09 /xterm-keys.c | |
parent | 3aadc9d665fd3ec52181c5e1d8bd2d6481a97fef (diff) | |
parent | b3de4a3dec85bc84bb83da6b46e2a8e2a634ace3 (diff) | |
download | rtmux-d325104d10b699e8c85cddd7ee9b7d2273c8cf40.tar.gz rtmux-d325104d10b699e8c85cddd7ee9b7d2273c8cf40.tar.bz2 rtmux-d325104d10b699e8c85cddd7ee9b7d2273c8cf40.zip |
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
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); |