Change print_diff
to output the correct line number.
This commit is contained in:
parent
6ada5b51cc
commit
992b179d33
@ -161,7 +161,7 @@ pub fn print_diff<F>(diff: Vec<Mismatch>, get_section_title: F, config: &Config)
|
||||
let mut writer = OutputWriter::new(color);
|
||||
|
||||
for mismatch in diff {
|
||||
let title = get_section_title(mismatch.line_number);
|
||||
let title = get_section_title(mismatch.line_number_orig);
|
||||
writer.writeln(&title, None);
|
||||
|
||||
for line in mismatch.lines {
|
||||
|
Loading…
Reference in New Issue
Block a user