mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-11 22:15:01 +02:00
chore: fix the extra comment icon at the end and change the icon pointer
This commit is contained in:
@@ -482,7 +482,7 @@ func (diff *Diff) LoadComments(ctx context.Context, issue *issues_model.Issue, c
|
||||
if lineCommits, ok := allComments[file.Name]; ok {
|
||||
for _, section := range file.Sections {
|
||||
for _, line := range section.Lines {
|
||||
if line.SectionInfo != nil {
|
||||
if line.SectionInfo != nil && line.SectionInfo.RightHunkSize > 0 {
|
||||
start := int64(line.SectionInfo.LastRightIdx + 1)
|
||||
end := int64(line.SectionInfo.RightIdx - 1)
|
||||
for start <= end {
|
||||
|
||||
Reference in New Issue
Block a user