properly use retset_color to append the reset_color marker
This commit is contained in:
parent
3ce69f4ca5
commit
d5e39670b8
@ -524,8 +524,7 @@ void vprint(std::FILE* f, const text_style& ts, const S& format,
|
||||
format_to( buf, "{}", format );
|
||||
|
||||
if (has_style) {
|
||||
size_t retset_color_char_count = sizeof( internal::data::reset_color ) / (*internal::data::reset_color);
|
||||
buf.append(internal::data::reset_color, internal::data::reset_color + retset_color_char_count);
|
||||
reset_color( buf );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user