Skip to content

Commit

Permalink
Missed a spot on the --no-color.
Browse files Browse the repository at this point in the history
  • Loading branch information
samwho committed Jun 14, 2023
1 parent e5e7d1d commit 554884e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ fn print_spacer(args: &Args, last_spacer: &Instant) -> Result<()> {
dashes -= elapsed.len() + 1;
}

print!("{}", args.dash.to_string().repeat(dashes).as_str().dimmed());
if args.no_color {
print!("{}", args.dash.to_string().repeat(dashes).as_str());
} else {
print!("{}", args.dash.to_string().repeat(dashes).as_str().dimmed());
}
println!();

if args.padding > 0 {
Expand Down

0 comments on commit 554884e

Please sign in to comment.