From c817254495d2d019744b70dbcbf1b11b8d436ad1 Mon Sep 17 00:00:00 2001 From: gabime Date: Mon, 15 Jul 2019 12:14:46 +0300 Subject: [PATCH] Update wincolor_sink-inl.h minor formatting --- include/spdlog/sinks/wincolor_sink-inl.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/spdlog/sinks/wincolor_sink-inl.h b/include/spdlog/sinks/wincolor_sink-inl.h index 6388ca71..854a6dc8 100644 --- a/include/spdlog/sinks/wincolor_sink-inl.h +++ b/include/spdlog/sinks/wincolor_sink-inl.h @@ -68,9 +68,8 @@ void SPDLOG_INLINE wincolor_sink::log(const details::log_msg &msg) // in color range auto orig_attribs = set_console_attribs(colors_[msg.level]); print_range_(formatted, msg.color_range_start, msg.color_range_end); - ::SetConsoleTextAttribute(out_handle_, - orig_attribs); // reset to orig colors - // after color range + // reset to orig colors + ::SetConsoleTextAttribute(out_handle_, orig_attribs); print_range_(formatted, msg.color_range_end, formatted.size()); } else // print without colors if color range is invalid (or color is disabled)