@@ -367,7 +367,8 @@ impl<'a> Printer for InteractivePrinter<'a> {
367 match chunk {
367 match chunk {
368 // ANSI escape passthrough.
368 // ANSI escape passthrough.
369 (text, true) => {
369 (text, true) => {
370− let is_ansi_csi = text.chars().skip(1).nth(0).map_or(false, |c|c == '[');
371+ text.chars().skip(1).nth(0).map_or(false, |c| c == '[');
372 if is_ansi_csi && text.chars().last().map_or(false, |c| c == 'm') {
373 if is_ansi_csi && text.chars().last().map_or(false, |c| c == 'm') {
373 // It's an ANSI SGR sequence.
374 // It's an ANSI SGR sequence.