Added initial support for inline diff highlighting

This commit is contained in:
Armin Ronacher 2021-01-31 18:22:37 +01:00
parent 182a998e0f
commit b601164a60
6 changed files with 245 additions and 50 deletions

View file

@ -14,11 +14,7 @@ fn main() {
ChangeTag::Insert => ("+", Style::new().green()),
ChangeTag::Equal => (" ", Style::new()),
};
print!(
"{}{}",
style.apply_to(sign).bold(),
style.apply_to(change.value())
);
print!("{}{}", style.apply_to(sign).bold(), style.apply_to(change),);
}
}
}