about summary refs log tree commit diff stats
path: root/prototypes/browse/11.mu
diff options
context:
space:
mode:
Diffstat (limited to 'prototypes/browse/11.mu')
-rw-r--r--prototypes/browse/11.mu6
1 files changed, 4 insertions, 2 deletions
diff --git a/prototypes/browse/11.mu b/prototypes/browse/11.mu
index 73e1b21e..af1ee45a 100644
--- a/prototypes/browse/11.mu
+++ b/prototypes/browse/11.mu
@@ -119,7 +119,8 @@ $update-attributes:check-state: {
       compare c, 0xa  # newline
       break-if-=  # no need to print newlines
       # print c
-      print-byte 0, c
+      var g/eax: grapheme <- copy c
+      print-grapheme 0, g
       col <- increment
       loop
     }  # $char-loop
@@ -167,6 +168,7 @@ fn dump in: (addr buffered-file) {
   var c/eax: byte <- read-byte-buffered in
   compare c, 0xffffffff  # EOF marker
   break-if-=
-  print-byte 0, c
+  var g/eax: grapheme <- copy c
+  print-grapheme 0, g
   loop
 }