mirror of https://github.com/Wilfred/difftastic/
30 lines
744 B
Rust
30 lines
744 B
Rust
|
|
fn column_widths(
|
|
hunks: &[Hunk],
|
|
lhs_mps: &[MatchedPos],
|
|
rhs_mps: &[MatchedPos],
|
|
max_lhs_src_line: LineNumber,
|
|
max_rhs_src_line: LineNumber,
|
|
) {
|
|
}
|
|
|
|
fn display_line_nums(
|
|
) -> (String, String) {
|
|
let display_rhs_line_num: String = match rhs_line_num {
|
|
Some(line_num) => {
|
|
let s = format_line_num_padded(line_num, rhs_column_width);
|
|
if rhs_lines_with_novel.contains(&line_num) {
|
|
s.bright_green().to_string()
|
|
} else {
|
|
s
|
|
}
|
|
}
|
|
None => format_missing_line_num(
|
|
prev_rhs_line_num.unwrap_or_else(|| 10.into()),
|
|
rhs_column_width,
|
|
),
|
|
};
|
|
|
|
(display_lhs_line_num, display_rhs_line_num)
|
|
}
|