forked from qt-creator/qt-creator
UnifiedDiffEditor: Fix '+' on added lines
Amends 15fd4a0754
Change-Id: If74b5437be241303de1e157b7980ef10ef6c060c
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -332,7 +332,7 @@ QString UnifiedDiffData::setChunk(const DiffEditorInput &input, const ChunkData
|
||||
for (int j = 0; j < buffer[side].count(); j++) {
|
||||
const TextLineData &lineData = buffer[side].at(j);
|
||||
const QString line = DiffUtils::makePatchLine(
|
||||
'-',
|
||||
side == LeftSide ? '-' : '+',
|
||||
lineData.text,
|
||||
lastChunk,
|
||||
chunkIndex == chunkData.rows.count() && j == buffer[side].count() - 1);
|
||||
|
Reference in New Issue
Block a user