color differing line number as well

This commit is contained in:
Denis-Cosmin Nutiu 2024-10-26 21:44:11 +03:00
parent f79bd6e7fb
commit 9b439e2566

View file

@ -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();