summaryrefslogtreecommitdiffstats
path: root/src/handlers/hunk_header.rs
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2021-11-14 14:14:51 -0500
committerDan Davison <dandavison7@gmail.com>2021-11-22 13:18:15 -0500
commitc8432915b702cae2308cd775fe913fa3a9c54832 (patch)
tree0edacc85fd50544c5416ec89f6c7bda90d5987c9 /src/handlers/hunk_header.rs
parent7acbafa1e81883864d396fc23c0c3aa7eb7971e5 (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.rs4
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,
);