From 8b30ead5884ea2d43361584043980b160b842749 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mo=C3=AFse=20Valvassori?= Date: Thu, 24 Nov 2022 06:39:08 +0100 Subject: [PATCH] add comment to the pregress bar suspension. --- src/uu/cp/src/cp.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/uu/cp/src/cp.rs b/src/uu/cp/src/cp.rs index 5bb596e0b..9664ba66f 100644 --- a/src/uu/cp/src/cp.rs +++ b/src/uu/cp/src/cp.rs @@ -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)); });