Commit 751bb12a96

Andrew Kelley <andrew@ziglang.org>
2021-05-16 23:31:55
stage2: fix error message coloring
After 7a4b53fdee89f2d61cedbb3cef3bda24dacf2a57, bold no longer changes the color back, so we need an extra reset.
1 parent f4ee46e
Changed files (1)
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);