Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Truncate long messages in the progress bar #214

Merged
merged 2 commits into from
Dec 14, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use bar to avoid weird interatction with wide_msg for progress
  • Loading branch information
sigmaSd committed Dec 8, 2021
commit 94c34f11c7b02384602aeb374cb9d83aa198588e
2 changes: 1 addition & 1 deletion src/progress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl Progress {
let mut t = String::new();
t += "{wide_msg} [{elapsed_precise}] ";
if precise && current_position_fn.is_some() {
t += "[{wide_bar:.cyan/blue}] ";
t += "[{bar:.cyan/blue}] ";
} else {
t += "{spinner:.green} ";
}
Expand Down