summaryrefslogtreecommitdiffstats
path: root/key-string.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2010-04-23 20:33:08 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2010-04-23 20:33:08 +0000
commit18ed37622ea2e19b9efb1f882ec9148dfd26862a (patch)
tree4046f837d384cc64734dabd75eb75ddab9dc7352 /key-string.c
parentec56ec7920e69fd59b3e7f535435b7af85313ca3 (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/key-string.c b/key-string.c
index e8ffcbde..270430cf 100644
--- a/key-string.c
+++ b/key-string.c
@@ -1,4 +1,4 @@
-/* $Id: key-string.c,v 1.30 2010-04-22 21:50:30 tcunha Exp $ */
+/* $Id: key-string.c,v 1.31 2010-04-23 20:33:08 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)