From d8bb59bd9afeb8d961c054796924b0b242824c76 Mon Sep 17 00:00:00 2001 From: vrana Date: Thu, 15 Mar 2012 05:19:46 -0700 Subject: [PATCH] Don't display old lines on right side in diff Summary: I've done the same stupid copy/paste mistake twice in one day :-(. Test Plan: Display diff with no newline at end of file in new file. Reviewers: davidreuss, epriestley Reviewed By: davidreuss CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1911 --- .../parser/changeset/DifferentialChangesetParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/differential/parser/changeset/DifferentialChangesetParser.php b/src/applications/differential/parser/changeset/DifferentialChangesetParser.php index 8ae71a7cd5..78b3980a59 100644 --- a/src/applications/differential/parser/changeset/DifferentialChangesetParser.php +++ b/src/applications/differential/parser/changeset/DifferentialChangesetParser.php @@ -1377,7 +1377,7 @@ final class DifferentialChangesetParser { if ($this->new[$ii]['type']) { if ($this->new[$ii]['type'] == '\\') { - $n_text = $this->old[$ii]['text']; + $n_text = $this->new[$ii]['text']; $n_attr = ' class="comment"'; } elseif (empty($this->old[$ii])) { $n_attr = ' class="new new-full"';