aboutsummaryrefslogtreecommitdiff
path: root/xterm-keys.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2014-02-16 23:02:07 +0000
committerThomas Adam <thomas@xteddy.org>2014-02-16 23:02:07 +0000
commitb3de4a3dec85bc84bb83da6b46e2a8e2a634ace3 (patch)
tree8704cc16b1ed5380bcd7c678351d85adfd5907c8 /xterm-keys.c
parent8edbbb98656a76f0a25b5243b526709a67ae3531 (diff)
parent81db6bab91309e7cb42628048408c10504522a48 (diff)
downloadrtmux-b3de4a3dec85bc84bb83da6b46e2a8e2a634ace3.tar.gz
rtmux-b3de4a3dec85bc84bb83da6b46e2a8e2a634ace3.tar.bz2
rtmux-b3de4a3dec85bc84bb83da6b46e2a8e2a634ace3.zip
Merge branch 'obsd-master'
Conflicts: tmux.1 tmux.c
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);