Commit 5a5ee618 authored by Rubén Dávila's avatar Rubén Dávila

Load all blob data when highlighting content for git-blame.

parent 07faf814
...@@ -40,6 +40,7 @@ module Gitlab ...@@ -40,6 +40,7 @@ module Gitlab
end end
def highlighted_lines def highlighted_lines
@blob.load_all_data!(repository)
@highlighted_lines ||= Gitlab::Highlight.highlight(@blob.name, @blob.data).lines @highlighted_lines ||= Gitlab::Highlight.highlight(@blob.name, @blob.data).lines
end end
......
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