@@ -18,12 +18,12 @@ use ansi_term;
1818
1919use bat::{
2020 assets::BAT_THEME_DEFAULT,
21+ config::{Config, PagingMode},
2122 errors::*,
2223 inputfile::InputFile,
2324 line_range::{HighlightedLineRanges, LineRange, LineRanges},
2425 style::{OutputComponent, OutputComponents, OutputWrap},
2526 syntax_mapping::SyntaxMapping,
26− config::{Config, PagingMode},
2727};
2828
2929fn is_truecolor_terminal() -> bool {
@@ -201,14 +201,13 @@ impl App {
201201 }
202202 })
203203 .unwrap_or_else(|| String::from(BAT_THEME_DEFAULT)),
204− line_ranges:
205− self.matches
206− .values_of("line-range")
207− .map(|vs| vs.map(LineRange::from).collect())
208− .transpose()?
209− .map(LineRanges::from)
210− .unwrap_or_default()
211− ,
204+ line_ranges: self
205+ .matches
206+ .values_of("line-range")
207+ .map(|vs| vs.map(LineRange::from).collect())
208+ .transpose()?
209+ .map(LineRanges::from)
210+ .unwrap_or_default(),
212211 output_components,
213212 syntax_mapping,
214213 pager: self.matches.value_of("pager"),
@@ -216,14 +215,14 @@ impl App {
216215 Some("always") => true,
217216 _ => false,
218217 },
219− highlighted_lines:
220− self.matches
221− .values_of("highlight-line")
222− .map(|ws| ws.map(LineRange::from).collect())
223− .transpose()?
224− .map(LineRanges::from)
225− .map(|lr| HighlightedLineRanges(lr))
226− .unwrap_or_default()
218+ highlighted_lines: self
219+ .matches
220+ .values_of("highlight-line")
221+ .map(|ws| ws.map(LineRange::from).collect())
222+ .transpose()?
223+ .map(LineRanges::from)
224+ .map(|lr| HighlightedLineRanges(lr))
225+ .unwrap_or_default(),
227226 })
228227 }
229228