Skip to content
Snippets Groups Projects
Commit 3db24ec9 authored by Douwe Maan's avatar Douwe Maan
Browse files

Properly highlight right side of parallel diff

parent 16d17b78
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -11,7 +11,8 @@ module Gitlab
lines = []
skip_next = false
 
diff_file.highlighted_diff_lines.each do |line|
highlighted_diff_lines = diff_file.highlighted_diff_lines
highlighted_diff_lines.each do |line|
full_line = line.text
type = line.type
line_code = generate_line_code(diff_file.file_path, line)
Loading
Loading
@@ -21,6 +22,7 @@ module Gitlab
next_line = diff_file.next_line(line.index)
 
if next_line
next_line = highlighted_diff_lines[next_line.index]
next_line_code = generate_line_code(diff_file.file_path, next_line)
next_type = next_line.type
next_line = next_line.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