diff options
author | Dan Davison <dandavison7@gmail.com> | 2021-11-14 14:14:51 -0500 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2021-11-22 13:18:15 -0500 |
commit | c8432915b702cae2308cd775fe913fa3a9c54832 (patch) | |
tree | 0edacc85fd50544c5416ec89f6c7bda90d5987c9 /src/handlers/hunk_header.rs | |
parent | 7acbafa1e81883864d396fc23c0c3aa7eb7971e5 (diff) |
Refactor: StyleSectionSpecifier enum for syntax_highlight_and_paint_line
Diffstat (limited to 'src/handlers/hunk_header.rs')
-rw-r--r-- | src/handlers/hunk_header.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/handlers/hunk_header.rs b/src/handlers/hunk_header.rs index 525b749d..d1b4706d 100644 --- a/src/handlers/hunk_header.rs +++ b/src/handlers/hunk_header.rs @@ -28,7 +28,7 @@ use super::draw; use crate::config::Config; use crate::delta::{self, State, StateMachine}; use crate::features; -use crate::paint::{BgShouldFill, Painter}; +use crate::paint::{BgShouldFill, Painter, StyleSectionSpecifier}; use crate::style::DecorationStyle; impl<'a> StateMachine<'a> { @@ -254,7 +254,7 @@ fn write_to_output_buffer( if !line.is_empty() { painter.syntax_highlight_and_paint_line( &line, - config.hunk_header_style, + StyleSectionSpecifier::Style(config.hunk_header_style), delta::State::HunkHeader("".to_owned(), "".to_owned()), BgShouldFill::No, ); |