mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 23:02:42 +01:00
Highlight also lines that were added on the other side in diff of diffs
This commit is contained in:
parent
a2f4d661b9
commit
273211ae3e
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue