summaryrefslogtreecommitdiffstats
path: root/src/paint.rs
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-05-24 17:53:36 -0400
committerDan Davison <dandavison7@gmail.com>2020-05-26 09:21:49 -0400
commit83ee16b03f9f45f7f9bd1851606d8329f4976dec (patch)
treea2c0e234cecbec4852f92b3185a5020465568460 /src/paint.rs
parent39706ed18dc0375e4a298201d1bc37d2b41efef3 (diff)
Implement --{commit,file,hunk-header}-{style,decoration-style}
Diffstat (limited to 'src/paint.rs')
-rw-r--r--src/paint.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/paint.rs b/src/paint.rs
index 6f39cffd..85939890 100644
--- a/src/paint.rs
+++ b/src/paint.rs
@@ -193,7 +193,7 @@ impl<'a> Painter<'a> {
config.plus_style.is_syntax_highlighted
|| config.plus_emph_style.is_syntax_highlighted
}
- State::HunkMeta => true,
+ State::HunkHeader => true,
_ => panic!(
"should_compute_syntax_highlighting is undefined for state {:?}",
state
@@ -395,6 +395,7 @@ mod superimpose_style_sections {
..ansi_term::Style::new()
},
is_syntax_highlighted: true,
+ decoration_style: None,
};
}
lazy_static! {
@@ -406,6 +407,7 @@ mod superimpose_style_sections {
..ansi_term::Style::new()
},
is_syntax_highlighted: false,
+ decoration_style: None,
};
}
lazy_static! {
@@ -417,6 +419,7 @@ mod superimpose_style_sections {
..ansi_term::Style::new()
},
is_syntax_highlighted: true,
+ decoration_style: None,
};
}