From 67b8435d190f5df4dfef4c1b20a24827441b1e9d Mon Sep 17 00:00:00 2001 From: Erik Kundt Date: Mon, 8 Jan 2024 10:15:25 +0100 Subject: [PATCH] patch: Show +/- for diff info in browser --- src/ui/cob.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/cob.rs b/src/ui/cob.rs index 4073d05d..a398feaf 100644 --- a/src/ui/cob.rs +++ b/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))