summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2023-06-03 07:49:14 -0400
committerDan Davison <dandavison7@gmail.com>2023-06-03 08:08:10 -0400
commitcf55860c91c6ed0e8a77cbd2c58ac10aaa279cbf (patch)
tree097c2598248ec1f2ca155a127ff0cb1616ff0837
parent3cc67525e2d05eccec1bd21fbd41e72b668d8039 (diff)
Honor grep-header-decoration-style for ripgrep outputgrep-fixups
-rw-r--r--src/parse_styles.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse_styles.rs b/src/parse_styles.rs
index f3aef088..81b8f8df 100644
--- a/src/parse_styles.rs
+++ b/src/parse_styles.rs
@@ -339,9 +339,9 @@ fn make_commit_file_hunk_header_styles(opt: &cli::Opt, styles: &mut HashMap<&str
(
"ripgrep-header-style",
style_from_str_with_handling_of_special_decoration_attributes(
- opt.grep_header_style.as_deref().unwrap_or("file syntax"),
+ opt.grep_header_style.as_deref().unwrap_or("file"),
None,
- Some("none"),
+ opt.grep_header_decoration_style.as_deref().or(Some("none")),
true_color,
opt.git_config(),
),