mirror of
https://github.com/sharkdp/bat
synced 2024-11-02 21:40:15 +00:00
Reformatted with cargo fmt
.
This commit is contained in:
parent
0ad09df7ab
commit
cc8186103b
@ -367,7 +367,8 @@ impl<'a> Printer for InteractivePrinter<'a> {
|
|||||||
match chunk {
|
match chunk {
|
||||||
// ANSI escape passthrough.
|
// ANSI escape passthrough.
|
||||||
(text, true) => {
|
(text, true) => {
|
||||||
let is_ansi_csi = text.chars().skip(1).nth(0).map_or(false, |c|c == '[');
|
let is_ansi_csi =
|
||||||
|
text.chars().skip(1).nth(0).map_or(false, |c| c == '[');
|
||||||
|
|
||||||
if is_ansi_csi && text.chars().last().map_or(false, |c| c == 'm') {
|
if is_ansi_csi && text.chars().last().map_or(false, |c| c == 'm') {
|
||||||
// It's an ANSI SGR sequence.
|
// It's an ANSI SGR sequence.
|
||||||
|
Loading…
Reference in New Issue
Block a user