Skip to content

Commit 4888c71

Browse files
committed
Fix bug in processDeleteOperation
1 parent c9d5129 commit 4888c71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/Caxy/HtmlDiff/HtmlDiff.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ protected function processDeleteOperation($operation, $cssClass)
171171
$text = array();
172172
foreach ($this->oldWords as $pos => $s) {
173173
if ($pos >= $operation->startInOld && $pos < $operation->endInOld) {
174-
if (in_array($s, $this->isolatedDiffTags) && isset($this->newIsolatedDiffTags[$pos])) {
174+
if (in_array($s, $this->isolatedDiffTags) && isset($this->oldIsolatedDiffTags[$pos])) {
175175
foreach ($this->oldIsolatedDiffTags[$pos] as $word) {
176176
$text[] = $word;
177177
}

0 commit comments

Comments
 (0)