about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-24 22:10:59 -0400
committerJune McEnroe <june@causal.agency>2018-08-24 22:10:59 -0400
commit601b8aab6399a060e220827b68fa05a12766a9c8 (patch)
tree293a06393e50c9f0a909febef1fbec27d6a3c93a
parentSeparate 8, 9 and *, ( (diff)
downloadtorus-601b8aab6399a060e220827b68fa05a12766a9c8.tar.gz
torus-601b8aab6399a060e220827b68fa05a12766a9c8.zip
Always interpret space as space
-rw-r--r--client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/client.c b/client.c
index a4742b2..6ba1cf6 100644
--- a/client.c
+++ b/client.c
@@ -291,6 +291,7 @@ static void cellSwap(int8_t dx, int8_t dy) {
 }
 
 static uint8_t inputCell(wchar_t ch) {
+	if (ch == ' ') return ' ';
 	if (ch < 0x80) return (uint8_t)ch + input.shift;
 	for (size_t i = 0; i < ARRAY_LEN(CP437); ++i) {
 		if (ch == CP437[i]) return i;