diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-09-21 20:25:24 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-09-21 20:25:24 -0700 |
commit | ce1b997619915f836901586d7d935bc6b2e996b9 (patch) | |
tree | a7e1af683bbcd7e91e6307de0bbdac70b20d7253 /apps | |
parent | d3876066178aecf2d2247368fffbb18872a07e88 (diff) | |
download | mu-ce1b997619915f836901586d7d935bc6b2e996b9.tar.gz |
6824 - tile: gap in column width computation
Diffstat (limited to 'apps')
-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 { |