diff options
Diffstat (limited to 'prototypes/browse/19')
-rw-r--r-- | prototypes/browse/19/file-state.mu | 3 | ||||
-rw-r--r-- | prototypes/browse/19/screen-position-state.mu | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/prototypes/browse/19/file-state.mu b/prototypes/browse/19/file-state.mu index 544c7832..d42bf8bf 100644 --- a/prototypes/browse/19/file-state.mu +++ b/prototypes/browse/19/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/19/screen-position-state.mu b/prototypes/browse/19/screen-position-state.mu index 543f1871..06efa4ba 100644 --- a/prototypes/browse/19/screen-position-state.mu +++ b/prototypes/browse/19/screen-position-state.mu @@ -63,7 +63,8 @@ fn start-drawing _self: (addr screen-position-state) { fn add-char _self: (addr screen-position-state), c: byte { var self/esi: (addr screen-position-state) <- copy _self # 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 |