Skip to content

pull requests: wrong line numbers in discussions  #17875

@rnwgnr

Description

@rnwgnr

Gitea Version

1.16.0+dev-630-g042cac5fe

Git Version

No response

Operating System

No response

How are you running Gitea?

tested on try.gitea.io with a migrated repo

Database

No response

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Description

demo: https://try.gitea.io/murks/Vereinsdokumente/pulls/7

I've created a comment for line 23 in a PR. While everything is fine in the "Files Changed" tab, the text block in the conversation view is off-by-one which brings the comments out of context.

Screenshots

Files Changed tab:
image

Conversation tab with wrong text section:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions