diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-04-23 14:27:04 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-04-23 14:27:04 +0000 |
commit | 6769115df2f6f7a9ffc17d7d74f3064ccc2ce663 (patch) | |
tree | 5ab0a248b619ca51a5dd421bd58703e02bdbb4b3 /key-string.c | |
parent | 261b6b861563e9b969da15361609b75cd2b800bc (diff) |
When converting A-Z into a control character, want to subtract 64 not
65... whoops.
Diffstat (limited to 'key-string.c')
-rw-r--r-- | key-string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/key-string.c b/key-string.c index f20d42db..5e806b81 100644 --- a/key-string.c +++ b/key-string.c @@ -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) |