mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-23 22:19:08 +01:00
Formatted for newest rustfmt.
This commit is contained in:
parent
1a4acc435e
commit
375cf76e15
@ -384,7 +384,8 @@ impl App {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
term_width: self.matches
|
term_width: self
|
||||||
|
.matches
|
||||||
.value_of("terminal-width")
|
.value_of("terminal-width")
|
||||||
.and_then(|w| w.parse().ok())
|
.and_then(|w| w.parse().ok())
|
||||||
.unwrap_or(Term::stdout().size().1 as usize),
|
.unwrap_or(Term::stdout().size().1 as usize),
|
||||||
@ -392,7 +393,8 @@ impl App {
|
|||||||
|| self.matches.value_of("color") == Some("always")
|
|| self.matches.value_of("color") == Some("always")
|
||||||
|| self.matches.value_of("decorations") == Some("always")),
|
|| self.matches.value_of("decorations") == Some("always")),
|
||||||
files,
|
files,
|
||||||
theme: self.matches
|
theme: self
|
||||||
|
.matches
|
||||||
.value_of("theme")
|
.value_of("theme")
|
||||||
.map(String::from)
|
.map(String::from)
|
||||||
.or_else(|| env::var("BAT_THEME").ok())
|
.or_else(|| env::var("BAT_THEME").ok())
|
||||||
|
Loading…
Reference in New Issue
Block a user