From dcb873c88dedb10b87cc884ded26880a038eb604 Mon Sep 17 00:00:00 2001 From: Oskar Nordquist Date: Wed, 26 Oct 2022 11:21:42 -0400 Subject: [PATCH] Fix behavior of fmt_string() to not truncate strings to width --- core/fmt/fmt.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/fmt/fmt.odin b/core/fmt/fmt.odin index 7429a093d..1cfd6ea33 100644 --- a/core/fmt/fmt.odin +++ b/core/fmt/fmt.odin @@ -975,7 +975,7 @@ fmt_string :: proc(fi: ^Info, s: string, verb: rune) { } } else { - io.write_string(fi.writer, s[:fi.width], &fi.n) + io.write_string(fi.writer, s, &fi.n) } } else