We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0965029 commit 4958a1eCopy full SHA for 4958a1e
diff-so-fancy
@@ -110,13 +110,13 @@ my @lines;
110
local $DiffHighlight::line_cb = sub {
111
push(@lines,@_);
112
113
- my $last_line = $lines[-1];
+ my $prev_line = $lines[-1];
114
115
# Buffer X lines before we try and output anything
116
# Also make sure we're sending enough data to d-s-f to do it's magic.
117
# Certain things require a look-ahead line or two to function so
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))/)) {
+ if (@lines > 24 && ($prev_line !~ /^${ansi_color_regex}(---|index|old mode|similarity index|rename (from|to))/)) {
120
do_dsf_stuff(\@lines);
121
@lines = ();
122
}
0 commit comments