Skip to content

Commit 8f8ca4e

Browse files
committed
Fix a bug that the code diff hunk missing one at
1 parent 32152a0 commit 8f8ca4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/gitdiff/gitdiff.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ func (diffSection *DiffSection) GetComputedInlineDiffFor(diffLine *DiffLine, loc
290290
// try to find equivalent diff line. ignore, otherwise
291291
switch diffLine.Type {
292292
case DiffLineSection:
293-
return getLineContent(diffLine.Content[1:], locale)
293+
return getLineContent(diffLine.Content, locale)
294294
case DiffLineAdd:
295295
compareDiffLine := diffSection.GetLine(diffLine.Match)
296296
return diffSection.getDiffLineForRender(DiffLineAdd, compareDiffLine, diffLine, locale)

0 commit comments

Comments
 (0)