Fixes for match lines in parallel view.
This commit is contained in:
parent
89875afff6
commit
85507b25e4
1 changed files with 4 additions and 2 deletions
|
@ -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 });
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue