about summary refs log tree commit diff stats
path: root/apps/tile/main.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-10-24 16:52:33 -0700
committerKartik Agaram <vc@akkartik.com>2020-10-24 16:52:33 -0700
commit1137dd2a997a271761c8da0b7e2be05d977909e1 (patch)
tree7b8cfab28466aad00d62d70221a945e12a86c6f0 /apps/tile/main.mu
parent07a1a2991275f2c98d20750c68dc87fb9d99895c (diff)
downloadmu-1137dd2a997a271761c8da0b7e2be05d977909e1.tar.gz
tile: process space at start of word
This was very difficult to debug.

We still need to process space in the middle of a word.
Diffstat (limited to 'apps/tile/main.mu')
-rw-r--r--apps/tile/main.mu15
1 files changed, 13 insertions, 2 deletions
diff --git a/apps/tile/main.mu b/apps/tile/main.mu
index 3e79bcbd..4cf325a1 100644
--- a/apps/tile/main.mu
+++ b/apps/tile/main.mu
@@ -77,9 +77,20 @@ fn test {
   initialize-environment-with-fake-screen env, 5, 0xa
   var g/eax: grapheme <- copy 0x31  # '1'
   process env, g
-  g <- copy 1  # 'ctrl-a'
+  g <- copy 0x20  # space
+  process env, g
+  g <- copy 0x32  # '2'
+  process env, g
+  g <- copy 0x33  # '3'
+  process env, g
+  g <- copy 0x445b1b  # left-arrow
+  process env, g
+  g <- copy 0x445b1b  # left-arrow
+  process env, g
+  g <- copy 0x20  # space
+  process env, g
+  g <- copy 0x445b1b  # left-arrow
   process env, g
-#?   render env
 }
 
 fn repl {