feat: reduce mode indicator clutter

This commit is contained in:
CJ van den Berg 2025-08-15 11:27:08 +02:00
parent 6b04f4db08
commit b043dfe34f
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -90,11 +90,11 @@ fn format(self: *Self) void {
const writer = fbs.writer(); const writer = fbs.writer();
const eol_mode = switch (self.eol_mode) { const eol_mode = switch (self.eol_mode) {
.lf => "", .lf => "",
.crlf => " [␍␊]", .crlf => " ␍␊",
}; };
const indent_mode = switch (self.indent_mode) { const indent_mode = switch (self.indent_mode) {
.spaces, .auto => "", .spaces, .auto => "",
.tabs => " [⭾]", .tabs => " ",
}; };
std.fmt.format(writer, "{s}{s} Ln ", .{ eol_mode, indent_mode }) catch {}; std.fmt.format(writer, "{s}{s} Ln ", .{ eol_mode, indent_mode }) catch {};
self.format_count(writer, self.line + 1, self.padding orelse 0) catch {}; self.format_count(writer, self.line + 1, self.padding orelse 0) catch {};