1
Fork 0
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:
Moïse Valvassori 2022-11-24 06:39:08 +01:00 committed by Sylvestre Ledru
parent 1b004053ac
commit 8b30ead588

View file

@ -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));
});