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:
@@ -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()),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user