diff --git a/include/fmt/color.h b/include/fmt/color.h index a10e8305..6c64b43b 100644 --- a/include/fmt/color.h +++ b/include/fmt/color.h @@ -524,8 +524,9 @@ void vprint(std::FILE* f, const text_style& ts, const S& format, } vformat_to(buf, format, args); if (has_style) { - reset_color(buf); + internal::reset_color(buf); } + buf.push_back(Char(0)); internal::fputs(buf.data(), f); }