1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-01 19:02:22 +01:00

Justify header when there are decorations but no grid

This commit is contained in:
Ezinwa Okpoechi
2018-05-24 11:47:10 +02:00
committed by David Peter
parent 65bb4c7ee6
commit 2ea3758c4b
4 changed files with 5 additions and 3 deletions

View File

@@ -90,6 +90,8 @@ impl<'a> Printer<'a> {
.grid
.paint(if self.panel_width > 0 { "" } else { "" }),
)?;
} else {
write!(self.handle, "{}", " ".repeat(self.panel_width))?;
}
writeln!(