From 8115bb6e87215b556d283dca02a39cb40506f12f Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Sat, 30 May 2020 14:14:15 -0400 Subject: 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. --- src/delta.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3