From 3f953ea5c861706f4996e9d4a9133d3806ad7a93 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 2 Sep 2021 13:19:43 -0700 Subject: . --- 501draw-text.mu | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/501draw-text.mu b/501draw-text.mu index 9d73c27b..a43fc822 100644 --- a/501draw-text.mu +++ b/501draw-text.mu @@ -208,11 +208,9 @@ fn draw-stream-wrapping-right-then-down screen: (addr screen), stream: (addr str var ycurr/edx: int <- copy y var c/ebx: code-point <- copy 0 $draw-stream-wrapping-right-then-down:loop: { - { - var g/eax: grapheme <- read-grapheme stream - var _c/eax: code-point <- to-code-point g - c <- copy _c - } + var g/eax: grapheme <- read-grapheme stream + var _c/eax: code-point <- to-code-point g + c <- copy _c compare c, 0xffffffff/end-of-file break-if-= compare c, 0xa/newline -- cgit 1.4.1-2-gfad0