mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
add comment to the pregress bar suspension.
This commit is contained in:
parent
1b004053ac
commit
8b30ead588
1 changed files with 1 additions and 0 deletions
|
@ -1351,6 +1351,7 @@ fn copy_file(
|
|||
|
||||
if options.verbose {
|
||||
if let Some(pb) = progress_bar {
|
||||
// Suspend (hide) the progress bar so the println won't overlap with the progress bar.
|
||||
pb.suspend(|| {
|
||||
println!("{}", context_for(source, dest));
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue