Commit 2ba40c6c authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Fix multi-file diff parsing

parent e33566cd
......@@ -333,6 +333,15 @@ void DiffWidget::parseAndShowDiff(const QByteArray &raw)
lineNumsA.append(-1);
lineNumsB.append(-1);
// add new line
left.append(QString());
right.append(QString());
lineA += 1;
lineB += 1;
break;
} else if (l.startsWith(QStringLiteral("diff --git "))) {
// Start of a new file
markInlineDiffs(hunkChangedLinesA, hunkChangedLinesB, leftHlts, rightHlts);
// add new line
left.append(QString());
right.append(QString());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment