diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-04-23 14:27:05 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-04-23 14:27:05 +0000 |
commit | ed069888a3c009f9af5ecffb1dd73b037a5b95c2 (patch) | |
tree | 219373ca2310268f5f6a94d73d0f2bb6c2691c17 /usr.bin | |
parent | 79b21e69de560fcc5a4a888210854196c40251c4 (diff) |
When converting A-Z into a control character, want to subtract 64 not
65... whoops.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/key-string.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/key-string.c b/usr.bin/tmux/key-string.c index 5d33b86e05e..569a01a1b8a 100644 --- a/usr.bin/tmux/key-string.c +++ b/usr.bin/tmux/key-string.c @@ -1,4 +1,4 @@ -/* $OpenBSD: key-string.c,v 1.14 2010/04/21 21:17:33 nicm Exp $ */ +/* $OpenBSD: key-string.c,v 1.15 2010/04/23 14:27:04 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -155,7 +155,7 @@ key_string_lookup_string(const char *string) if (key >= 97 && key <= 122) key -= 96; else if (key >= 65 && key <= 90) - key -= 65; + key -= 64; else if (key == 32) key = 0; else if (key == 63) |