zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 751bb12a9612c092541a63db72eb9ecc5eb1c4bd (tree)
parent f4ee46e8395228cdcb1d5f7f2ac8b4ebd955b07f
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Sun, 16 May 2021 14:31:55 -0700

stage2: fix error message coloring

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

Diffstat:
Msrc/Compilation.zig | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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);