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-13 00:05:05 -0700
committerKartik Agaram <vc@akkartik.com>2020-10-13 00:05:05 -0700
commitaf52cb8d1fe6b523cd733c699f72508509be45cc (patch)
treedeeb6974dceb8eb42585e49bff2a70275ef503d1 /apps/tile/main.mu
parent54fd7d7a99374945158277193ff2d0976cb0d756 (diff)
downloadmu-af52cb8d1fe6b523cd733c699f72508509be45cc.tar.gz
7015 - bugfix in column width computation
I just got bitten by variable shadowing! It's a lot less theoretical concern
now.
Diffstat (limited to 'apps/tile/main.mu')
-rw-r--r--apps/tile/main.mu14
1 files changed, 13 insertions, 1 deletions
diff --git a/apps/tile/main.mu b/apps/tile/main.mu
index 573a7457..7a57a1b9 100644
--- a/apps/tile/main.mu
+++ b/apps/tile/main.mu
@@ -75,7 +75,19 @@ fn test {
   var env-storage: environment
   var env/esi: (addr environment) <- address env-storage
   initialize-environment-with-fake-screen env, 0x30, 0xa0  # 48 rows, 160 columns
-  var g/eax: grapheme <- copy 0x73  # 's'
+  var g/eax: grapheme <- copy 0x31  # '1'
+  process env, g
+  g <- copy 0x31
+  process env, g
+  g <- copy 0x31
+  process env, g
+  g <- copy 0x31
+  process env, g
+  g <- copy 0x20  # space
+  process env, g
+  g <- copy 0x31
+  process env, g
+  g <- copy 0x20  # space
   process env, g
   render env
 }