From b9a4b54413dfbb1e2ed556a47754a3514bda1325 Mon Sep 17 00:00:00 2001 From: Tanki Zhang Date: Wed, 9 Oct 2019 23:29:13 -0400 Subject: [PATCH] add terminator --- include/fmt/color.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }