mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-02 03:38:52 +01:00
Run 'cargo fmt'
This commit is contained in:
parent
3a75d85b80
commit
ec908d5937
@ -303,12 +303,11 @@ impl<'a> Printer for InteractivePrinter<'a> {
|
|||||||
let title = "8<";
|
let title = "8<";
|
||||||
let title_count = title.chars().count();
|
let title_count = title.chars().count();
|
||||||
|
|
||||||
let snip_left =
|
let snip_left = "─ ".repeat((self.config.term_width - panel_count - (title_count / 2)) / 4);
|
||||||
"─ ".repeat((self.config.term_width - panel_count - (title_count / 2)) / 4);
|
|
||||||
let snip_left_count = snip_left.chars().count(); // Can't use .len() with Unicode.
|
let snip_left_count = snip_left.chars().count(); // Can't use .len() with Unicode.
|
||||||
|
|
||||||
let snip_right = " ─"
|
let snip_right =
|
||||||
.repeat((self.config.term_width - panel_count - snip_left_count - title_count) / 2);
|
" ─".repeat((self.config.term_width - panel_count - snip_left_count - title_count) / 2);
|
||||||
|
|
||||||
write!(
|
write!(
|
||||||
handle,
|
handle,
|
||||||
|
Loading…
Reference in New Issue
Block a user