summaryrefslogtreecommitdiffstats
path: root/src/delta.rs
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-06-16 21:15:56 -0400
committerDan Davison <dandavison7@gmail.com>2020-06-17 15:07:56 -0400
commitc2c279b5fb8b79d5ce2991682ca6a0c5958f87c3 (patch)
treeec08c517dcade0dda6e8f9d46c14d28aea5949b2 /src/delta.rs
parent5d5b4a3995e109b24b420daa094773ac4e6dc5bf (diff)
Highlight added/removed empty lines if they would be invisible
Thanks @phillipwood
Diffstat (limited to 'src/delta.rs')
-rw-r--r--src/delta.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/delta.rs b/src/delta.rs
index 36ea6a56..366520ec 100644
--- a/src/delta.rs
+++ b/src/delta.rs
@@ -405,6 +405,7 @@ fn handle_hunk_header_line(
"",
config.null_style,
config.null_style,
+ None,
Some(false),
);
painter.output_buffer.pop(); // trim newline
@@ -495,6 +496,7 @@ fn handle_hunk_line(
config.zero_style,
config.zero_style,
None,
+ None,
);
painter.minus_line_number += 1;
painter.plus_line_number += 1;