Skip to content

Commit 2f3d7bb

Browse files
Don't break on "index" lines we need to see the next line (fixes #261)
1 parent c8fe790 commit 2f3d7bb

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|rename (from|to))/)) {
74+
if (@lines > 24 && ($last_line !~ /^${ansi_color_regex}(---|index|old mode|similarity index|rename (from|to))/)) {
7575
do_dsf_stuff(\@lines);
7676
@lines = ();
7777
}

0 commit comments

Comments
 (0)