From 8354b62fe130ce1eca3e1b985c7521c16de901e9 Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Tue, 23 Nov 2021 16:23:29 -0500 Subject: [PATCH] Bug fix: don't forget non-emph states --- src/paint.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/paint.rs b/src/paint.rs index 529065f62..03b484db5 100644 --- a/src/paint.rs +++ b/src/paint.rs @@ -627,11 +627,13 @@ impl<'p> Painter<'p> { State::HunkMinus(None) => { config.minus_style.is_syntax_highlighted || config.minus_emph_style.is_syntax_highlighted + || config.minus_non_emph_style.is_syntax_highlighted } State::HunkZero => config.zero_style.is_syntax_highlighted, State::HunkPlus(None) => { config.plus_style.is_syntax_highlighted || config.plus_emph_style.is_syntax_highlighted + || config.plus_non_emph_style.is_syntax_highlighted } State::HunkHeader(_, _) => true, State::HunkMinus(Some(_)) | State::HunkPlus(Some(_)) => false,