summaryrefslogtreecommitdiffstats
path: root/src/paint.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/paint.rs')
-rw-r--r--src/paint.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/paint.rs b/src/paint.rs
index 264cecdc..02854a5c 100644
--- a/src/paint.rs
+++ b/src/paint.rs
@@ -476,6 +476,7 @@ impl<'p> Painter<'p> {
(config.plus_style, config.plus_non_emph_style)
}
}
+ State::Blame(_, _) => (diff_sections[0].0, diff_sections[0].0),
_ => (config.null_style, config.null_style),
};
let fill_style = if style_sections_contain_more_than_one_style(diff_sections) {
@@ -621,6 +622,7 @@ impl<'p> Painter<'p> {
}
State::HunkHeader(_, _) => true,
State::HunkMinus(Some(_)) | State::HunkPlus(Some(_)) => false,
+ State::Blame(_, _) => true,
_ => panic!(
"should_compute_syntax_highlighting is undefined for state {:?}",
state