diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-05-30 14:14:15 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-05-30 16:55:38 -0400 |
commit | 8115bb6e87215b556d283dca02a39cb40506f12f (patch) | |
tree | 793e01fbc4bb54eb7a68cfd100ecdab864ceaba4 /src/delta.rs | |
parent | 09d8df02374b983cd061e19454d92f855a2542cb (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/delta.rs')
-rw-r--r-- | src/delta.rs | 2 |
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; |