aboutsummaryrefslogtreecommitdiff
path: root/xterm-keys.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2014-02-17 18:09:25 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2014-02-17 18:09:25 +0000
commitd325104d10b699e8c85cddd7ee9b7d2273c8cf40 (patch)
treeed3512ff09e388cb3f91c82ea5bad6a13d745a09 /xterm-keys.c
parent3aadc9d665fd3ec52181c5e1d8bd2d6481a97fef (diff)
parentb3de4a3dec85bc84bb83da6b46e2a8e2a634ace3 (diff)
downloadrtmux-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.c4
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);