diff options
-rw-r--r-- | apps/tile/environment.mu | 6 |
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 { |