Skip to content

Commit c8fe790

Browse files
Don't split on renames... fixes #262
1 parent 49612cd commit c8fe790

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
@@ -71,7 +71,7 @@ if (!$has_stdin) {
7171
# Also make sure we're sending enough data to d-s-f to do it's magic.
7272
# Certain things require a look-ahead line or two to function so
7373
# we make sure we don't break on those sections prematurely
74-
if (@lines > 24 && ($last_line !~ /^${ansi_color_regex}(---|old mode|similarity index)/)) {
74+
if (@lines > 24 && ($last_line !~ /^${ansi_color_regex}(---|old mode|similarity index|rename (from|to))/)) {
7575
do_dsf_stuff(\@lines);
7676
@lines = ();
7777
}

0 commit comments

Comments
 (0)