mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-12 08:12:27 +01:00
Changed italics to use-italic-text in config
Better placing of italics in help and also added long_help for it
This commit is contained in:
committed by
David Peter
parent
dc10246bd2
commit
18d1a3b973
@@ -305,7 +305,7 @@ impl<'a> Printer for InteractivePrinter<'a> {
|
||||
if self.config.output_wrap == OutputWrap::None {
|
||||
let true_color = self.config.true_color;
|
||||
let colored_output = self.config.colored_output;
|
||||
let italics = self.config.italics;
|
||||
let italics = self.config.use_italic_text;
|
||||
|
||||
for &(style, region) in regions.iter() {
|
||||
let text = &*self.preprocess(region, &mut cursor_total);
|
||||
@@ -368,7 +368,7 @@ impl<'a> Printer for InteractivePrinter<'a> {
|
||||
),
|
||||
self.config.true_color,
|
||||
self.config.colored_output,
|
||||
self.config.italics
|
||||
self.config.use_italic_text
|
||||
)
|
||||
)?;
|
||||
break;
|
||||
@@ -408,7 +408,7 @@ impl<'a> Printer for InteractivePrinter<'a> {
|
||||
),
|
||||
self.config.true_color,
|
||||
self.config.colored_output,
|
||||
self.config.italics
|
||||
self.config.use_italic_text
|
||||
),
|
||||
panel_wrap.clone().unwrap()
|
||||
)?;
|
||||
|
Reference in New Issue
Block a user