Commit 5ef7fdbd authored by George Dewar's avatar George Dewar

Fix bug in which a line count without empty lines was incorrectly used

parent 9b52affe
...@@ -116,7 +116,7 @@ module CommitsHelper ...@@ -116,7 +116,7 @@ module CommitsHelper
added_lines[line_new] = { line_code: line_code, type: type, line: line } added_lines[line_new] = { line_code: line_code, type: type, line: line }
end end
end end
max_length = old_file ? old_file.sloc + added_lines.length : file.sloc max_length = old_file ? [old_file.loc, file.loc].max : file.loc
offset1 = 0 offset1 = 0
offset2 = 0 offset2 = 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment