Merge pull request #2153 from oskarnp/fix-fmt-string-width

Fix behavior of fmt_string() to not truncate strings to width
This commit is contained in:
Jeroen van Rijn
2022-10-26 17:54:26 +02:00
committed by GitHub
+1 -1
View File
@@ -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