Expanded code in diffs wasn't being highlighted properly because it wasn't passing the filename to highlighting code. Fixes #12218tags/v1.13.0-rc1
@@ -605,7 +605,8 @@ func ExcerptBlob(ctx *context.Context) { | |||
return | |||
} | |||
section := &gitdiff.DiffSection{ | |||
Name: filePath, | |||
FileName: filePath, | |||
Name: filePath, | |||
} | |||
if direction == "up" && (idxLeft-lastLeft) > chunkSize { | |||
idxLeft -= chunkSize |