summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/buffer.c b/buffer.c
index b4d9833..7c468b8 100644
--- a/buffer.c
+++ b/buffer.c
@@ -646,8 +646,9 @@ static void buffer_print(TextBuffer const *buffer) {
for (u32 j = 0; j < line->len; ++j) {
// on windows, this will print characters outside the Basic Multilingual Plane incorrectly
// but this function is just for debugging anyways
- putwchar((wchar_t)line->str[j]);
+ print("%lc", (wchar_t)line->str[j]);
}
+ print("\n");
}
fflush(stdout);
}