From 273211ae3e4d27473b19fe03eed1d6b54d57c4fa Mon Sep 17 00:00:00 2001 From: vrana Date: Fri, 29 Jun 2012 18:19:01 -0700 Subject: [PATCH] Highlight also lines that were added on the other side in diff of diffs --- .../differential/parser/DifferentialChangesetParser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/applications/differential/parser/DifferentialChangesetParser.php b/src/applications/differential/parser/DifferentialChangesetParser.php index 87e740ed1c..89b6d1f093 100644 --- a/src/applications/differential/parser/DifferentialChangesetParser.php +++ b/src/applications/differential/parser/DifferentialChangesetParser.php @@ -165,14 +165,14 @@ final class DifferentialChangesetParser { if (isset($olds[$i])) { list($n, $type) = $olds[$i]; if ($type == '+' || - ($type == ' ' && isset($news[$i]) && $news[$i][1] == '-')) { + ($type == ' ' && isset($news[$i]) && $news[$i][1] != ' ')) { $highlight_old[] = $offsets_old[$n]; } } if (isset($news[$i])) { list($n, $type) = $news[$i]; if ($type == '+' || - ($type == ' ' && isset($olds[$i]) && $olds[$i][1] == '-')) { + ($type == ' ' && isset($olds[$i]) && $olds[$i][1] != ' ')) { $highlight_new[] = $offsets_new[$n]; } }