color differing line number as well
This commit is contained in:
parent
f79bd6e7fb
commit
9b439e2566
1 changed files with 4 additions and 1 deletions
|
@ -40,7 +40,10 @@ impl Line {
|
|||
let _ = stdout.set_color(ColorSpec::new().set_fg(Some(Color::Green)));
|
||||
println!(" - {}", left_line);
|
||||
let _ = stdout.reset();
|
||||
println!("{line_number}. ----");
|
||||
let _ = stdout.set_color(ColorSpec::new().set_fg(Some(Color::Red)));
|
||||
print!("{}.", line_number);
|
||||
let _ = stdout.reset();
|
||||
println!("----");
|
||||
let _ = stdout.set_color(ColorSpec::new().set_fg(Some(Color::Red)));
|
||||
println!(" + {}", right_line);
|
||||
let _ = stdout.reset();
|
||||
|
|
Loading…
Reference in a new issue