Skip to content

Commit 00a935a

Browse files
authored
Fix fs-write diff colors (#3280)
1 parent 27777c6 commit 00a935a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/chat-cli/src/cli/chat/tools/fs_write.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -666,18 +666,18 @@ fn print_diff(
666666
for change in diff.iter_all_changes() {
667667
// Define the colors per line.
668668
let (text_color, gutter_bg_color, line_bg_color) = match (change.tag(), new_str.truecolor) {
669-
(similar::ChangeTag::Equal, true) => (theme().ui.secondary_text, new_str.gutter_bg, new_str.line_bg),
669+
(similar::ChangeTag::Equal, true) => (style::Color::Reset, new_str.gutter_bg, new_str.line_bg),
670670
(similar::ChangeTag::Delete, true) => (
671-
theme().ui.secondary_text,
671+
style::Color::Reset,
672672
style::Color::Rgb { r: 79, g: 40, b: 40 },
673673
style::Color::Rgb { r: 36, g: 25, b: 28 },
674674
),
675675
(similar::ChangeTag::Insert, true) => (
676-
theme().ui.secondary_text,
676+
style::Color::Reset,
677677
style::Color::Rgb { r: 40, g: 67, b: 43 },
678678
style::Color::Rgb { r: 24, g: 38, b: 30 },
679679
),
680-
(similar::ChangeTag::Equal, false) => (theme().ui.secondary_text, new_str.gutter_bg, new_str.line_bg),
680+
(similar::ChangeTag::Equal, false) => (style::Color::Reset, new_str.gutter_bg, new_str.line_bg),
681681
(similar::ChangeTag::Delete, false) => (theme().status.error, new_str.gutter_bg, new_str.line_bg),
682682
(similar::ChangeTag::Insert, false) => (theme().status.success, new_str.gutter_bg, new_str.line_bg),
683683
};

0 commit comments

Comments
 (0)