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, 1 insertions, 1 deletions
diff --git a/src/paint.rs b/src/paint.rs
index 88f26bfa..2236ec2d 100644
--- a/src/paint.rs
+++ b/src/paint.rs
@@ -463,7 +463,7 @@ impl<'a> Painter<'a> {
config.plus_style.is_syntax_highlighted
|| config.plus_emph_style.is_syntax_highlighted
}
- State::HunkHeader => true,
+ State::HunkHeader(_, _) => true,
State::HunkMinus(Some(_)) | State::HunkPlus(Some(_)) => false,
_ => panic!(
"should_compute_syntax_highlighting is undefined for state {:?}",