mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-21 21:04:40 +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
|
// try to find equivalent diff line. ignore, otherwise
|
||||||
switch diffLine.Type {
|
switch diffLine.Type {
|
||||||
case DiffLineSection:
|
case DiffLineSection:
|
||||||
return getLineContent(diffLine.Content[1:], locale)
|
return getLineContent(diffLine.Content, locale)
|
||||||
case DiffLineAdd:
|
case DiffLineAdd:
|
||||||
compareDiffLine := diffSection.GetLine(diffLine.Match)
|
compareDiffLine := diffSection.GetLine(diffLine.Match)
|
||||||
return diffSection.getDiffLineForRender(DiffLineAdd, compareDiffLine, diffLine, locale)
|
return diffSection.getDiffLineForRender(DiffLineAdd, compareDiffLine, diffLine, locale)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user