From 7cd6b390236245d2f0b0d09df7e495ed87aaefd6 Mon Sep 17 00:00:00 2001 From: Erik Kundt Date: Tue, 5 Nov 2024 15:22:33 +0100 Subject: [PATCH] bin: Fixes moved paths in `patch review` --- bin/commands/patch/review.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/commands/patch/review.rs b/bin/commands/patch/review.rs index 827c5a35..b6042082 100644 --- a/bin/commands/patch/review.rs +++ b/bin/commands/patch/review.rs @@ -329,7 +329,7 @@ impl<'a> App<'a> { (_, crate::cob::ReviewItem::FileMoved { moved }) => { let path = Line::from( [ - ReviewItem::pretty_path(&moved.new_path, false).spans, + ReviewItem::pretty_path(&moved.old_path, false).spans, [span::default(" -> ")].to_vec(), ReviewItem::pretty_path(&moved.new_path, false).spans, ] @@ -341,7 +341,7 @@ impl<'a> App<'a> { Column::new(path.clone(), Constraint::Length(path.width() as u16)), Column::new( span::default(" moved ") - .light_red() + .light_blue() .dim() .reversed() .into_right_aligned_line(),