feat: reduce mode indicator clutter
This commit is contained in:
parent
6b04f4db08
commit
b043dfe34f
1 changed files with 2 additions and 2 deletions
|
@ -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 {};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue