Skip to content

Commit 0335915

Browse files
committed
Merge branch 'jk/diff-highlight-blank-match-fix'
"diff-highlight" (in contrib/) had a logic to flush its output upon seeing a blank line but the way it detected a blank line was broken. * jk/diff-highlight-blank-match-fix: diff-highlight: correctly match blank lines for flush
2 parents b5847b9 + 579789d commit 0335915

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/diff-highlight/DiffHighlight.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ sub handle_line {
112112
# Since we can receive arbitrary input, there's no optimal
113113
# place to flush. Flushing on a blank line is a heuristic that
114114
# happens to match git-log output.
115-
if (!length) {
115+
if (/^$/) {
116116
$flush_cb->();
117117
}
118118
}

0 commit comments

Comments
 (0)