Skip to content
Snippets Groups Projects
Commit 85507b25 authored by Fatih Acet's avatar Fatih Acet
Browse files

Fixes for match lines in parallel view.

parent 89875aff
No related branches found
No related tags found
No related merge requests found
Loading
@@ -67,8 +67,10 @@ window.MergeConflictDataProvider = class MergeConflictDataProvider {
Loading
@@ -67,8 +67,10 @@ window.MergeConflictDataProvider = class MergeConflictDataProvider {
} }
} }
else { else {
file.parallelLines.left.push({ lineType: 'context', lineNumber: line.old_line, richText: line.rich_text }); const lineType = line.type || 'context';
file.parallelLines.right.push({ lineType: 'context', lineNumber: line.new_line, richText: line.rich_text }); 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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment