diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-01-19 00:03:12 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-01-19 00:13:27 +0300 |
commit | ece2e80bf88c594b454d8dce9d040f99725ef535 (patch) | |
tree | 21dec372e5b4400c87aebbf20c6b0951b67f690f /app/views/projects/blob/diff.html.haml | |
parent | bc0a82334af7ef3a49067277cc5b7a7f3889658e (diff) |
ensure linenumber data attribute is correct for the last line in a diff chunk
Diffstat (limited to 'app/views/projects/blob/diff.html.haml')
-rw-r--r-- | app/views/projects/blob/diff.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/blob/diff.html.haml b/app/views/projects/blob/diff.html.haml index 538f8591f13..3b1a2e54ec2 100644 --- a/app/views/projects/blob/diff.html.haml +++ b/app/views/projects/blob/diff.html.haml @@ -27,4 +27,4 @@ - if @form.unfold? && @form.bottom? && @form.to < @blob.loc %tr.line_holder{ id: @form.to, class: line_class } - = diff_match_line @form.to, @form.to, text: @match_line, view: diff_view, bottom: true + = diff_match_line @form.to - @form.offset, @form.to, text: @match_line, view: diff_view, bottom: true |