diff options
Diffstat (limited to 'prototypes/browse/26-headers')
-rw-r--r-- | prototypes/browse/26-headers/file-state.mu | 3 | ||||
-rw-r--r-- | prototypes/browse/26-headers/screen-position-state.mu | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/prototypes/browse/26-headers/file-state.mu b/prototypes/browse/26-headers/file-state.mu index 544c7832..d42bf8bf 100644 --- a/prototypes/browse/26-headers/file-state.mu +++ b/prototypes/browse/26-headers/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/26-headers/screen-position-state.mu b/prototypes/browse/26-headers/screen-position-state.mu index dec8b502..7b53ae07 100644 --- a/prototypes/browse/26-headers/screen-position-state.mu +++ b/prototypes/browse/26-headers/screen-position-state.mu @@ -72,7 +72,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 |