mirror of
https://github.com/lsd-rs/lsd
synced 2024-12-14 06:02:36 +00:00
Display all the batch a once
This commit is contained in:
parent
e425bd9d3a
commit
9e16d6620b
1 changed files with 5 additions and 1 deletions
|
@ -45,9 +45,13 @@ impl<'a> Display<'a> {
|
|||
}
|
||||
|
||||
fn print_one_per_line(&self, outputs: &[String]) {
|
||||
let mut res = String::new();
|
||||
for output in outputs {
|
||||
println!("{}", output);
|
||||
res += output;
|
||||
res += "\n";
|
||||
}
|
||||
|
||||
println!("{}", res);
|
||||
}
|
||||
|
||||
fn get_visible_width(&self, input: &str) -> usize {
|
||||
|
|
Loading…
Reference in a new issue