1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-02 18:41:42 +00:00

Merge branch 'master' of https://github.com/tskinn/bat into tskinn-master

This commit is contained in:
sharkdp
2018-12-16 20:43:36 +01:00
4 changed files with 38 additions and 4 deletions
+8
View File
@@ -77,7 +77,11 @@ pub struct Config<'a> {
/// Command to start the pager
pub pager: Option<&'a str>,
/// Whether or not to use ANSI italics
pub use_italic_text: bool,
/// A line to highlight
pub highlight_line: Option<usize>,
}
fn is_truecolor_terminal() -> bool {
@@ -264,6 +268,10 @@ impl App {
Some("always") => true,
_ => false,
},
highlight_line: self
.matches
.value_of("highlight-line")
.and_then(|w| w.parse().ok()),
})
}