Skip to content

Commit 326dfea

Browse files
Fix #269 binary file deletes on last line of diff
1 parent a78644d commit 326dfea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diff-so-fancy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ sub do_dsf_stuff {
125125

126126
# The line immediately after the "index" line should be the --- file line
127127
# If it's not it's an empty file add/delete
128-
if ($next !~ /^$ansi_color_regex---/) {
128+
if ($next !~ /^$ansi_color_regex(---|Binary files)/) {
129129

130130
# We fake out the file names since it's a raw add/delete
131131
if ($last_file_mode eq "add") {

0 commit comments

Comments
 (0)