diff --git a/src/deb/mod.rs b/src/deb/mod.rs index 14540bf..21fcb80 100644 --- a/src/deb/mod.rs +++ b/src/deb/mod.rs @@ -821,16 +821,12 @@ fn copy_report<'a>( base_id: &str, ) -> Option> { view.map(|view| { - let label = format!("Copying the staged tree of record {base_id}"); + // The views render the byte counters after the bar: the label + // must stay short or the bar line overflows a narrow terminal. + let label = format!("Restoring {base_id}"); view.message(&label); - Box::new(move |pos: u64, total: u64| { - let size = crate::utils::size::format_bytes; - view.byte_progress( - &format!("{label} ({}/{})", size(pos), size(total)), - pos, - total, - ) - }) as Box + Box::new(move |pos: u64, total: u64| view.byte_progress(&label, pos, total)) + as Box }) }