diff options
author | 2010-04-23 14:27:04 +0000 | |
---|---|---|
committer | 2010-04-23 14:27:04 +0000 | |
commit | 0d46ed67314595bed0d32123de36e8ed8819ad76 (patch) | |
tree | 7e9f1e68ecba8de3b7652c7073630546dbb88a35 /usr.bin/tmux/key-string.c | |
parent | Use proper Queen's English in a comment. Drive-by fix, no functional change. (diff) | |
download | wireguard-openbsd-0d46ed67314595bed0d32123de36e8ed8819ad76.tar.xz wireguard-openbsd-0d46ed67314595bed0d32123de36e8ed8819ad76.zip |
When converting A-Z into a control character, want to subtract 64 not
65... whoops.
Diffstat (limited to 'usr.bin/tmux/key-string.c')
-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) |