Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
term: Don't print empty tables
cloudhead committed 1 year ago
commit d9fa83f9da61b770b0798ba9f42301ff84e8c826
parent 6966c971944a5bcfeef21ee8664e8a84a16b09b9
1 file changed +5 -0
modified radicle-term/src/table.rs
@@ -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()