File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -110,13 +110,13 @@ my @lines;
110
110
local $DiffHighlight::line_cb = sub {
111
111
push (@lines ,@_ );
112
112
113
- my $last_line = $lines [-1];
113
+ my $prev_line = $lines [-1];
114
114
115
115
# Buffer X lines before we try and output anything
116
116
# Also make sure we're sending enough data to d-s-f to do it's magic.
117
117
# Certain things require a look-ahead line or two to function so
118
118
# we make sure we don't break on those sections prematurely
119
- if (@lines > 24 && ($last_line !~ / ^${ansi_color_regex} (---|index|old mode|similarity index|rename (from|to))/ )) {
119
+ if (@lines > 24 && ($prev_line !~ / ^${ansi_color_regex} (---|index|old mode|similarity index|rename (from|to))/ )) {
120
120
do_dsf_stuff(\@lines );
121
121
@lines = ();
122
122
}
You can’t perform that action at this time.
0 commit comments