diff options
author | Dan Davison <dandavison7@gmail.com> | 2023-06-03 10:00:04 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2023-06-03 10:00:50 -0400 |
commit | 3819e942632580cae47afd1425aca04e37db98cf (patch) | |
tree | eaa65d0e29b84f359655fba31c4b3b2c761543d6 /src/parse_styles.rs | |
parent | a28231aebcf334ac080599aa9d903c734662f0b0 (diff) |
Drop grep-header-style option
Diffstat (limited to 'src/parse_styles.rs')
-rw-r--r-- | src/parse_styles.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/parse_styles.rs b/src/parse_styles.rs index 81b8f8df..0cd97f39 100644 --- a/src/parse_styles.rs +++ b/src/parse_styles.rs @@ -325,9 +325,7 @@ fn make_commit_file_hunk_header_styles(opt: &cli::Opt, styles: &mut HashMap<&str ( "classic-grep-header-style", style_from_str_with_handling_of_special_decoration_attributes( - opt.grep_header_style - .as_deref() - .unwrap_or(opt.hunk_header_style.as_str()), + opt.hunk_header_style.as_str(), None, opt.grep_header_decoration_style .as_deref() @@ -339,7 +337,7 @@ 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"), + "file", None, opt.grep_header_decoration_style.as_deref().or(Some("none")), true_color, |