diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-12-27 21:44:00 +0000 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-12-27 22:06:37 +0000 |
commit | 8210334b44bd63a450cf66e4203910e4c2eb055b (patch) | |
tree | f0490c49995d00f06dfd199306d12b98d9c0e846 /src/hunk_header.rs | |
parent | 32e068bf6e736ff9d364b9d066adbfc62e69b944 (diff) |
Use special style attribute to control line-number in hunk-header
Diffstat (limited to 'src/hunk_header.rs')
-rw-r--r-- | src/hunk_header.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/hunk_header.rs b/src/hunk_header.rs index d5fbef48..2f54dd79 100644 --- a/src/hunk_header.rs +++ b/src/hunk_header.rs @@ -96,7 +96,11 @@ fn _write_hunk_header( ); have_hunk_header = true; }; - if !config.line_numbers && !config.hunk_header_style.is_raw && !config.color_only { + if !config.line_numbers + && config.hunk_header_style_include_line_number + && !config.hunk_header_style.is_raw + && !config.color_only + { if have_hunk_header { let _ = write!(&mut painter.output_buffer, ":"); } |