Use fmt width if specified in graphical report handler

This commit is contained in:
Dion Dokter 2025-09-14 17:08:26 +02:00
parent 907857058d
commit 9fc590aba7
1 changed files with 7 additions and 1 deletions

View File

@ -1366,7 +1366,13 @@ impl ReportHandler for GraphicalReportHandler {
return fmt::Debug::fmt(diagnostic, f); return fmt::Debug::fmt(diagnostic, f);
} }
self.render_report(f, diagnostic) if let Some(width) = f.width() {
let mut handler = self.clone();
handler.termwidth = width;
handler.render_report(f, diagnostic)
} else {
self.render_report(f, diagnostic)
}
} }
} }