mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
add comment to the pregress bar suspension.
This commit is contained in:
committed by
Sylvestre Ledru
parent
1b004053ac
commit
8b30ead588
@@ -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));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user