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:
parent
32152a0ac0
commit
8f8ca4e510
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user