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:05:11 -0400
commita28231aebcf334ac080599aa9d903c734662f0b0 (patch)
tree097c2598248ec1f2ca155a127ff0cb1616ff0837
parent481d3c1a26096c30e19b29f7c22be0574bb6d4cf (diff)
Honor grep-header-decoration-style for ripgrep output
-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(),
),