Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
term: Rename `Row::Divid{i,}er`
Josh Soref committed 7 days ago
commit a1017050121d92a8643d05b596f6f264ef50fac6
parent 08dd1dfda7b867f6843f79ff26c191f21361d84d
1 file changed +5 -5
modified crates/radicle-term/src/vstack.rs
@@ -22,21 +22,21 @@ impl Default for VStackOptions {
enum Row<'a> {
    Element(Box<dyn Element + 'a>),
    #[default]
-
    Dividier,
+
    Divider,
}

impl Row<'_> {
    fn width(&self, c: Constraint) -> usize {
        match self {
            Self::Element(e) => e.columns(c),
-
            Self::Dividier => c.min.cols,
+
            Self::Divider => c.min.cols,
        }
    }

    fn height(&self, c: Constraint) -> usize {
        match self {
            Self::Element(e) => e.rows(c),
-
            Self::Dividier => 1,
+
            Self::Divider => 1,
        }
    }
}
@@ -62,7 +62,7 @@ impl<'a> VStack<'a> {

    /// Add a horizontal divider.
    pub fn divider(mut self) -> Self {
-
        self.rows.push(Row::Dividier);
+
        self.rows.push(Row::Divider);
        self
    }

@@ -177,7 +177,7 @@ impl Element for VStack<'_> {
                        }
                    }
                }
-
                Row::Dividier => {
+
                Row::Divider => {
                    if let Some(color) = self.opts.border {
                        lines.push(
                            Line::default()