1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-10-04 02:52:32 +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:
Nisheet Sinvhal
2018-11-04 22:38:33 +05:30
committed by David Peter
parent dc10246bd2
commit 18d1a3b973
4 changed files with 17 additions and 17 deletions

View File

@@ -29,7 +29,7 @@ pub fn as_terminal_escaped(
color.bold()
} else if style.font_style.contains(FontStyle::UNDERLINE) {
color.underline()
} else if style.font_style.contains(FontStyle::ITALIC) && italics {
} else if italics && style.font_style.contains(FontStyle::ITALIC) {
color.italic()
} else {
color.normal()