diff options
author | Dan Davison <dandavison7@gmail.com> | 2021-08-28 20:21:42 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2021-08-28 21:36:57 -0400 |
commit | 19eec9bd3e037cd542dfafa40e067098fad917ac (patch) | |
tree | 9975e283d01824e500f670ec71863ab4ea79798d /src/paint.rs | |
parent | 6afd3705d801f03772e5d74b7e137edc169d5e8e (diff) |
Handle blame output
Fixes #291, #426
Diffstat (limited to 'src/paint.rs')
-rw-r--r-- | src/paint.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/paint.rs b/src/paint.rs index f807146a..a575d3bf 100644 --- a/src/paint.rs +++ b/src/paint.rs @@ -358,6 +358,7 @@ impl<'a> Painter<'a> { (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) { @@ -494,6 +495,7 @@ impl<'a> Painter<'a> { } State::HunkHeader(_, _) => true, State::HunkMinus(Some(_)) | State::HunkPlus(Some(_)) => false, + State::Blame(_) => true, _ => panic!( "should_compute_syntax_highlighting is undefined for state {:?}", state |