Radish alpha
r
Radicle terminal user interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
patch: Show +/- for diff info in browser
Erik Kundt committed 2 years ago
commit 67b8435d190f5df4dfef4c1b20a24827441b1e9d
parent 50c5f756c03106ad9284547b2de18204ee8df73b
1 file changed +2 -2
modified src/ui/cob.rs
@@ -148,10 +148,10 @@ impl TableItem<8> for PatchItem {
        let head = Cell::from(format::oid(self.head))
            .style(Style::default().fg(theme.colors.browser_patch_list_head));

-
        let added = Cell::from(format!("{}", self.added))
+
        let added = Cell::from(format!("+{}", self.added))
            .style(Style::default().fg(theme.colors.browser_patch_list_added));

-
        let removed = Cell::from(format!("{}", self.removed))
+
        let removed = Cell::from(format!("-{}", self.removed))
            .style(Style::default().fg(theme.colors.browser_patch_list_removed));

        let updated = Cell::from(format::timestamp(&self.timestamp))