Skip to content

Commit 8f39d54

Browse files
Really fix chunks
1 parent d92fbaa commit 8f39d54

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

diff-so-fancy

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,13 @@ sub do_dsf_stuff {
225225
########################################
226226
# Check for "@@ -3,41 +3,63 @@" syntax #
227227
########################################
228-
} elsif ($line =~ /^${ansi_color_regex}(@@@* .+? @@@*)(.*)/) {
229-
$in_hunk = 1;
228+
} elsif (!$change_hunk_indicators && $line =~ /^${ansi_color_regex}(@@@* .+? @@@*)(.*)/) {
229+
$in_hunk = 1;
230+
231+
print $line;
232+
} elsif ($change_hunk_indicators && $line =~ /^${ansi_color_regex}(@@@* .+? @@@*)(.*)/) {
233+
$in_hunk = 1;
234+
230235
my $hunk_header = $4;
231236
my $remain = bleach_text($5);
232237

0 commit comments

Comments
 (0)