mirror of
https://github.com/sharkdp/bat
synced 2024-11-17 09:27:59 +00:00
Style changes
This commit is contained in:
parent
0ddd388a29
commit
6b57f4eebc
1 changed files with 5 additions and 6 deletions
|
@ -126,7 +126,8 @@ impl<'a> Printer<'a> {
|
|||
|
||||
// Line decorations.
|
||||
if self.panel_width > 0 {
|
||||
let decorations = self.decorations
|
||||
let decorations = self
|
||||
.decorations
|
||||
.iter()
|
||||
.map(|ref d| d.generate(self.line_number, false, self))
|
||||
.collect::<Vec<_>>();
|
||||
|
@ -213,11 +214,9 @@ impl<'a> Printer<'a> {
|
|||
"{} ",
|
||||
self.decorations
|
||||
.iter()
|
||||
.map(|ref d| d.generate(
|
||||
self.line_number,
|
||||
true,
|
||||
self
|
||||
).text)
|
||||
.map(|ref d| d
|
||||
.generate(self.line_number, true, self)
|
||||
.text)
|
||||
.collect::<Vec<String>>()
|
||||
.join(" ")
|
||||
))
|
||||
|
|
Loading…
Reference in a new issue