Skip to content

Commit 74d806f

Browse files
author
Chris Boulton
committed
Merge pull request #7 from dgarrett/patch-1
Fix an issue with insertions being skipped.
2 parents 516c4be + b13d23d commit 74d806f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Diff/Renderer/Text/Context.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function render()
116116
if($hasVisible) {
117117
foreach($group as $code) {
118118
list($tag, $i1, $i2, $j1, $j2) = $code;
119-
if($tag == 'insert') {
119+
if($tag == 'delete') {
120120
continue;
121121
}
122122
$diff .= $this->tagMap[$tag].' '.implode("\n".$this->tagMap[$tag].' ', $this->diff->GetB($j1, $j2))."\n";

0 commit comments

Comments
 (0)