Fixes for match lines in parallel view.

This commit is contained in:
Fatih Acet 2016-07-31 18:31:56 +03:00
parent 89875afff6
commit 85507b25e4

View file

@ -67,8 +67,10 @@ window.MergeConflictDataProvider = class MergeConflictDataProvider {
}
}
else {
file.parallelLines.left.push({ lineType: 'context', lineNumber: line.old_line, richText: line.rich_text });
file.parallelLines.right.push({ lineType: 'context', lineNumber: line.new_line, richText: line.rich_text });
const lineType = line.type || 'context';
const hasMatch = line.type === 'match';
file.parallelLines.left.push({ lineType, hasMatch, lineNumber: line.old_line, richText: line.rich_text });
file.parallelLines.right.push({ lineType, hasMatch, lineNumber: line.new_line, richText: line.rich_text });
}
});
});