From 751bb12a9612c092541a63db72eb9ecc5eb1c4bd Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 16 May 2021 14:31:55 -0700 Subject: stage2: fix error message coloring After 7a4b53fdee89f2d61cedbb3cef3bda24dacf2a57, bold no longer changes the color back, so we need an extra reset. --- src/Compilation.zig | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Compilation.zig') diff --git a/src/Compilation.zig b/src/Compilation.zig index 20e3bfa1c8..0f1cfd13c6 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -349,6 +349,7 @@ pub const AllErrors = struct { ttyconf.setColor(stderr, color); try stderr.writeByteNTimes(' ', indent); try stderr.writeAll(kind); + ttyconf.setColor(stderr, .Reset); ttyconf.setColor(stderr, .Bold); try stderr.print(" {s}\n", .{src.msg}); ttyconf.setColor(stderr, .Reset); -- cgit v1.2.3