0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-07-19 04:11:16 +02:00

Fix a bug that the code diff hunk missing one at

This commit is contained in:
Lunny Xiao 2025-07-10 21:22:08 -07:00
parent 32152a0ac0
commit 8f8ca4e510
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -290,7 +290,7 @@ func (diffSection *DiffSection) GetComputedInlineDiffFor(diffLine *DiffLine, loc
// try to find equivalent diff line. ignore, otherwise
switch diffLine.Type {
case DiffLineSection:
return getLineContent(diffLine.Content[1:], locale)
return getLineContent(diffLine.Content, locale)
case DiffLineAdd:
compareDiffLine := diffSection.GetLine(diffLine.Match)
return diffSection.getDiffLineForRender(DiffLineAdd, compareDiffLine, diffLine, locale)