Skip to content

Commit 4958a1e

Browse files
Make variable name clearer
1 parent 0965029 commit 4958a1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

diff-so-fancy

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@ my @lines;
110110
local $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
}

0 commit comments

Comments
 (0)