about summary refs log tree commit diff stats
path: root/prototypes/browse/21
diff options
context:
space:
mode:
Diffstat (limited to 'prototypes/browse/21')
-rw-r--r--prototypes/browse/21/file-state.mu3
-rw-r--r--prototypes/browse/21/screen-position-state.mu3
2 files changed, 4 insertions, 2 deletions
diff --git a/prototypes/browse/21/file-state.mu b/prototypes/browse/21/file-state.mu
index 544c7832..d42bf8bf 100644
--- a/prototypes/browse/21/file-state.mu
+++ b/prototypes/browse/21/file-state.mu
@@ -39,6 +39,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
 }
diff --git a/prototypes/browse/21/screen-position-state.mu b/prototypes/browse/21/screen-position-state.mu
index 2316d3ae..e740a141 100644
--- a/prototypes/browse/21/screen-position-state.mu
+++ b/prototypes/browse/21/screen-position-state.mu
@@ -70,7 +70,8 @@ $add-char:body: {
     break $add-char:body
   }
   # print c
-  print-byte 0, c
+  var g/eax: grapheme <- copy c
+  print-grapheme 0, g
   # self->col++
   var tmp/eax: (addr int) <- get self, col
   increment *tmp