authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-05-16 14:31:55-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-05-16 14:31:55-07:00
log751bb12a9612c092541a63db72eb9ecc5eb1c4bd
tree6ef7a40a5def78f6d190672e902964eee827f420
parentf4ee46e8395228cdcb1d5f7f2ac8b4ebd955b07f

stage2: fix error message coloring

After 7a4b53fdee89f2d61cedbb3cef3bda24dacf2a57, bold no longer changes the color back, so we need an extra reset.

1 files changed, 1 insertions(+), 0 deletions(-)

src/Compilation.zig+1
......@@ -349,6 +349,7 @@ pub const AllErrors = struct {
349349 ttyconf.setColor(stderr, color);
350350 try stderr.writeByteNTimes(' ', indent);
351351 try stderr.writeAll(kind);
352 ttyconf.setColor(stderr, .Reset);
352353 ttyconf.setColor(stderr, .Bold);
353354 try stderr.print(" {s}\n", .{src.msg});
354355 ttyconf.setColor(stderr, .Reset);