summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2021-12-05 09:44:03 -0500
committerDan Davison <dandavison7@gmail.com>2021-12-05 09:44:03 -0500
commitf73f0a8cbd8f66340817ab8b143f5a4459380647 (patch)
tree21837ec90e180c2f389ca412e4fb61b518314e0d
parentc632494c804441f0cff8ad341cf6bd529dad109e (diff)
Fix blame background colors
-rw-r--r--src/handlers/blame.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/handlers/blame.rs b/src/handlers/blame.rs
index 2cf6547f..ec27ecda 100644
--- a/src/handlers/blame.rs
+++ b/src/handlers/blame.rs
@@ -37,12 +37,12 @@ impl<'a> StateMachine<'a> {
let mut style =
match paint::parse_style_sections(&self.raw_line, self.config).first() {
- Some((style, _)) => {
+ Some((style, _)) if style != &Style::default() => {
// Something like `blame.coloring = highlightRecent` is in effect; honor
// the color from git, subject to map-styles.
*style
}
- None => {
+ _ => {
// Compute the color ourselves.
let color = self.get_color(blame.commit, previous_commit, is_repeat);
// TODO: This will often be pointlessly updating a key with the