about summary refs log tree commit diff stats
path: root/apps/tile/environment.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-09-21 20:25:24 -0700
committerKartik Agaram <vc@akkartik.com>2020-09-21 20:25:24 -0700
commitce1b997619915f836901586d7d935bc6b2e996b9 (patch)
treea7e1af683bbcd7e91e6307de0bbdac70b20d7253 /apps/tile/environment.mu
parentd3876066178aecf2d2247368fffbb18872a07e88 (diff)
downloadmu-ce1b997619915f836901586d7d935bc6b2e996b9.tar.gz
6824 - tile: gap in column width computation
Diffstat (limited to 'apps/tile/environment.mu')
-rw-r--r--apps/tile/environment.mu6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/tile/environment.mu b/apps/tile/environment.mu
index caa8c720..06c4befb 100644
--- a/apps/tile/environment.mu
+++ b/apps/tile/environment.mu
@@ -225,6 +225,12 @@ fn render-column screen: (addr screen), first-word: (addr word), final-word: (ad
   # render word, initialize result
   move-cursor screen, 3, botleft-col  # input-row
   print-word screen, final-word
+  {
+    var size/eax: int <- word-length final-word
+    compare size, max-width
+    break-if-<=
+    max-width <- copy size
+  }
 
   # update cursor
   {