mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 14:00:31 +08:00
term: Don't print empty tables
Before this change, the table borders would be printed, as well as the table header if any.
This commit is contained in:
@@ -92,6 +92,11 @@ where
|
||||
let inner = self.inner(parent);
|
||||
let cols = inner.cols;
|
||||
|
||||
// Don't print empty tables.
|
||||
if self.is_empty() {
|
||||
return lines;
|
||||
}
|
||||
|
||||
if let Some(color) = border {
|
||||
lines.push(
|
||||
Line::default()
|
||||
|
||||
Reference in New Issue
Block a user