about summary refs log tree commit diff
path: root/third_party/git/contrib/diff-highlight/DiffHighlight.pm
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/git/contrib/diff-highlight/DiffHighlight.pm')
-rw-r--r--third_party/git/contrib/diff-highlight/DiffHighlight.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/git/contrib/diff-highlight/DiffHighlight.pm b/third_party/git/contrib/diff-highlight/DiffHighlight.pm
index 7440aa1c46..376f577737 100644
--- a/third_party/git/contrib/diff-highlight/DiffHighlight.pm
+++ b/third_party/git/contrib/diff-highlight/DiffHighlight.pm
@@ -72,7 +72,7 @@ sub handle_line {
 	      (?:$COLOR?\|$COLOR?[ ])* # zero or more trailing "|"
 	                         [ ]*  # trailing whitespace for merges
 	    /x) {
-	        my $graph_prefix = $&;
+		my $graph_prefix = $&;
 
 		# We must flush before setting graph indent, since the
 		# new commit may be indented differently from what we
@@ -112,7 +112,7 @@ sub handle_line {
 	# Since we can receive arbitrary input, there's no optimal
 	# place to flush. Flushing on a blank line is a heuristic that
 	# happens to match git-log output.
-	if (!length) {
+	if (/^$/) {
 		$flush_cb->();
 	}
 }