diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-12-27 21:37:09 +0000 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-12-27 22:06:37 +0000 |
commit | 98782aa64e36298ca9fd76b36253ec3a931f7e98 (patch) | |
tree | 4157b945c591f1f40777871d2228438f9eeb477a | |
parent | 8210334b44bd63a450cf66e4203910e4c2eb055b (diff) |
Include file and line number under diff-so-fancy emulation
-rw-r--r-- | src/features/diff_so_fancy.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/features/diff_so_fancy.rs b/src/features/diff_so_fancy.rs index cdc0c359..3898dac1 100644 --- a/src/features/diff_so_fancy.rs +++ b/src/features/diff_so_fancy.rs @@ -38,7 +38,7 @@ pub fn make_feature() -> Vec<(String, OptionValueFunction)> { "hunk-header-style", String, Some("color.diff.frag"), - _opt => "bold syntax" + _opt => "file line-number bold syntax" ), ( "hunk-header-decoration-style", @@ -70,7 +70,7 @@ pub mod tests { assert_eq!(opt.file_style, "11"); assert_eq!(opt.file_decoration_style, "bold yellow ul ol"); - assert_eq!(opt.hunk_header_style, "bold syntax"); + assert_eq!(opt.hunk_header_style, "file line-number bold syntax"); assert_eq!(opt.hunk_header_decoration_style, "magenta box"); } |