When converting A-Z into a control character, want to subtract 64 not

65... whoops.
pull/1/head
Nicholas Marriott 2010-04-23 20:33:08 +00:00
parent ec56ec7920
commit 18ed37622e
1 changed files with 2 additions and 2 deletions

View File

@ -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)