aboutsummaryrefslogtreecommitdiff
path: root/xterm-keys.c
diff options
context:
space:
mode:
authorThomas <thomas@xteddy.org>2014-02-05 10:47:57 +0000
committerThomas <thomas@xteddy.org>2014-02-05 10:47:57 +0000
commit6eef24c37a69c0faa12deb4374730cf02561c934 (patch)
tree181937aeab92a1a9aa3c888bb1194ba1f919ec2d /xterm-keys.c
parentd02c4bda3a4b456f654fb0c1b454ba9724bff0f3 (diff)
parent57332be8da86f0e40a91d7acd857564e789027a7 (diff)
downloadrtmux-6eef24c37a69c0faa12deb4374730cf02561c934.tar.gz
rtmux-6eef24c37a69c0faa12deb4374730cf02561c934.tar.bz2
rtmux-6eef24c37a69c0faa12deb4374730cf02561c934.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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xterm-keys.c b/xterm-keys.c
index 8c885875..6916552f 100644
--- a/xterm-keys.c
+++ b/xterm-keys.c
@@ -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);