@@ -471,7 +471,7 @@ impl<'a> Printer for InteractivePrinter<'a> {
471471 &mut cursor_total,
472472 );
473473
474− let max_width = cursor_max - cursor;
474+ let mut max_width = cursor_max - cursor;
475475
476476 // line buffer (avoid calling write! for every character)
477477 let mut line_buf = String::with_capacity(max_width * 4);
@@ -505,8 +505,6 @@ impl<'a> Printer for InteractivePrinter<'a> {
505505 }
506506 }
507507
508− cursor = 0;
509−
510508 // It wraps.
511509 write!(
512510 handle,
@@ -525,6 +523,9 @@ impl<'a> Printer for InteractivePrinter<'a> {
525523 panel_wrap.clone().unwrap()
526524 )?;
527525
526+ cursor = 0;
527+ max_width = cursor_max;
528+
528529 line_buf.clear();
529530 current_width = cw;
530531 }