diff --git a/src/Compilation.zig b/src/Compilation.zig index ff36df198a3e8a4d4d8272884a00ae3337c318e6..f3059a25a55c14b35410537f62481970e4bbc432 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -354,7 +354,10 @@ pub const AllErrors = struct { try stderr.print(" {s}\n", .{src.msg}); ttyconf.setColor(stderr, .Reset); if (src.source_line) |line| { - try stderr.writeAll(line); + for (line) |b| switch (b) { + '\t' => try stderr.writeByte(' '), + else => try stderr.writeByte(b), + }; try stderr.writeByte('\n'); try stderr.writeByteNTimes(' ', src.column); ttyconf.setColor(stderr, .Green);