summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-05-30 14:14:15 -0400
committerDan Davison <dandavison7@gmail.com>2020-05-30 16:55:38 -0400
commit8115bb6e87215b556d283dca02a39cb40506f12f (patch)
tree793e01fbc4bb54eb7a68cfd100ecdab864ceaba4 /src
parent09d8df02374b983cd061e19454d92f855a2542cb (diff)
Implement --commit-style raw with decoration
`--commit-style fg bg` is also raw at this point (delta colors are ignored) but this commit ensures that '--commit-style raw' doesn't erroneously remove the decoration.
Diffstat (limited to 'src')
-rw-r--r--src/delta.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/delta.rs b/src/delta.rs
index caed2534..bebf2e16 100644
--- a/src/delta.rs
+++ b/src/delta.rs
@@ -73,7 +73,7 @@ where
if line.starts_with("commit ") {
painter.paint_buffered_lines();
state = State::CommitMeta;
- if !config.commit_style.is_raw {
+ if should_handle(&state, config) {
painter.emit()?;
handle_commit_meta_header_line(&mut painter, &raw_line, config)?;
continue;