summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-18 18:35:35 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-18 18:35:35 -0500
commit2bac729d5166f87b9290e1b466b4aa814b1bb1c0 (patch)
tree15568be3b41c5aa82e70173756f12fdfbf8a7b3b /buffer.c
parent5fa8e041356038034327ade41545677dd3007679 (diff)
go to MSVC error
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);
}