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;
110110local $DiffHighlight::line_cb = sub {
111111 push (@lines ,@_ );
112112
113- my $last_line = $lines [-1];
113+ my $prev_line = $lines [-1];
114114
115115 # Buffer X lines before we try and output anything
116116 # Also make sure we're sending enough data to d-s-f to do it's magic.
117117 # Certain things require a look-ahead line or two to function so
118118 # 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))/ )) {
120120 do_dsf_stuff(\@lines );
121121 @lines = ();
122122 }
You can’t perform that action at this time.
0 commit comments