aboutsummaryrefslogtreecommitdiff
path: root/unequal.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2009-12-20 10:01:57 +0000
committerSimon Tatham <anakin@pobox.com>2009-12-20 10:01:57 +0000
commit2bdabe31cf42b34f8d7bb6015c383482cfb5d068 (patch)
tree3ad1cc865a62b3700838a27077b862f262138d16 /unequal.c
parent8628a0630c16bc01c1370a6cb15412dd27c33332 (diff)
downloadpuzzles-2bdabe31cf42b34f8d7bb6015c383482cfb5d068.zip
puzzles-2bdabe31cf42b34f8d7bb6015c383482cfb5d068.tar.gz
puzzles-2bdabe31cf42b34f8d7bb6015c383482cfb5d068.tar.bz2
puzzles-2bdabe31cf42b34f8d7bb6015c383482cfb5d068.tar.xz
Jonas Koelker points out that the backspace key didn't work in GTK
Guess, because Guess expected ^H whereas GTK generated ^?. Other puzzles that use Backspace do it by being prepared to see either, which seems wasteful. Now the midend normalises both into ^H, so front ends can generate whichever they like while puzzles can safely just look for ^H. [originally from svn r8786]
Diffstat (limited to 'unequal.c')
-rw-r--r--unequal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unequal.c b/unequal.c
index 26fcd41..35837c0 100644
--- a/unequal.c
+++ b/unequal.c
@@ -392,7 +392,7 @@ static char n2c(digit n, int order) {
static int c2n(int c, int order) {
if (c < 0 || c > 0xff)
return -1;
- if (c == ' ' || c == '\010' || c == '\177')
+ if (c == ' ' || c == '\b')
return 0;
if (order < 10) {
if (c >= '1' && c <= '9')