Skip to content
Snippets Groups Projects
Commit 1f46dacf authored by Phil Jones's avatar Phil Jones
Browse files

Fix typo in --graph-style option

Change "eigth-block" to "eighth-block"
parent 35dd631e
No related branches found
No related tags found
No related merge requests found
...@@ -231,9 +231,9 @@ the browser with the 'g' key. ...@@ -231,9 +231,9 @@ the browser with the 'g' key.
Change the way that the relative size bar column is drawn. Recognized values Change the way that the relative size bar column is drawn. Recognized values
are I<hash> to draw ASCII C<#> characters (most portable), I<half-block> to use are I<hash> to draw ASCII C<#> characters (most portable), I<half-block> to use
half-block drawing characters (the default) or I<eigth-block> to use half-block drawing characters (the default) or I<eighth-block> to use
eigth-block drawing characters. Eigth-block characters are the most precise but eighth-block drawing characters. Eighth-block characters are the most precise
may not render correctly in all terminals. but may not render correctly in all terminals.
=item B<--shared-column> I<OPTION> =item B<--shared-column> I<OPTION>
......
...@@ -238,7 +238,7 @@ const Row = struct { ...@@ -238,7 +238,7 @@ const Row = struct {
ui.addstr(switch (main.config.graph_style) { ui.addstr(switch (main.config.graph_style) {
.hash => ([_][:0]const u8{ " ", " ", " ", " ", " ", " ", " ", " ", "#" })[frac], .hash => ([_][:0]const u8{ " ", " ", " ", " ", " ", " ", " ", " ", "#" })[frac],
.half => ([_][:0]const u8{ " ", " ", " ", " ", "▌", "▌", "▌", "▌", "█" })[frac], .half => ([_][:0]const u8{ " ", " ", " ", " ", "▌", "▌", "▌", "▌", "█" })[frac],
.eigth => ([_][:0]const u8{ " ", "▏", "▎", "▍", "▌", "▋", "▊", "▉", "█" })[frac], .eighth => ([_][:0]const u8{ " ", "▏", "▎", "▍", "▌", "▋", "▊", "▉", "█" })[frac],
}); });
num -|= perblock; num -|= perblock;
} }
......
...@@ -61,7 +61,7 @@ pub const config = struct { ...@@ -61,7 +61,7 @@ pub const config = struct {
pub var show_mtime: bool = false; pub var show_mtime: bool = false;
pub var show_graph: bool = true; pub var show_graph: bool = true;
pub var show_percent: bool = false; pub var show_percent: bool = false;
pub var graph_style: enum { hash, half, eigth } = .half; pub var graph_style: enum { hash, half, eighth } = .half;
pub var sort_col: SortCol = .blocks; pub var sort_col: SortCol = .blocks;
pub var sort_order: SortOrder = .desc; pub var sort_order: SortOrder = .desc;
pub var sort_dirsfirst: bool = false; pub var sort_dirsfirst: bool = false;
...@@ -186,7 +186,7 @@ fn argConfig(args: *Args, opt: Args.Option) bool { ...@@ -186,7 +186,7 @@ fn argConfig(args: *Args, opt: Args.Option) bool {
const val = args.arg(); const val = args.arg();
if (std.mem.eql(u8, val, "hash")) config.graph_style = .hash if (std.mem.eql(u8, val, "hash")) config.graph_style = .hash
else if (std.mem.eql(u8, val, "half-block")) config.graph_style = .half else if (std.mem.eql(u8, val, "half-block")) config.graph_style = .half
else if (std.mem.eql(u8, val, "eigth-block")) config.graph_style = .eigth else if (std.mem.eql(u8, val, "eighth-block")) config.graph_style = .eighth
else ui.die("Unknown --graph-style option: {s}.\n", .{val}); else ui.die("Unknown --graph-style option: {s}.\n", .{val});
} else if (opt.is("--sort")) { } else if (opt.is("--sort")) {
var val: []const u8 = args.arg(); var val: []const u8 = args.arg();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment