From 83c21d6aac92eb412d44cb31643b288228d6c9de Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Fri, 31 Dec 2021 19:47:26 -0800 Subject: [PATCH] Add TODO --- src/side_by_side.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/side_by_side.rs b/src/side_by_side.rs index 25fefba48..91efc8019 100644 --- a/src/side_by_side.rs +++ b/src/side_by_side.rs @@ -265,6 +265,7 @@ pub fn display_hunks( return display_single_column(display_path, lang_name, &lhs_colored_src, Color::BrightRed); } + // TODO: this is largely duplicating the `apply_colors` logic. let (lhs_highlights, rhs_highlights) = highlight_positions(lhs_mps, rhs_mps); let lhs_lines = split_lines_nonempty(lhs_src); let rhs_lines = split_lines_nonempty(rhs_src);