Skip to content

Issue comment edit-diff is wrong #17393

Closed
@noerw

Description

@noerw

Gitea Version

58cd55d

Git Version

? idk, saw it on gitea.com

Operating System

linux

How are you running Gitea?

gitea.com

Database

MySQL

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Description

Edits of more complex comments get quite strange diffs. I got diffs that didn't touch the single line that was edited, but show two other lines as changed (I'll try to come up with a more minimal reproducer later)
An edit like the following worked fine though.

foo
-baz
+bar
bar

It seems this feature needs more testing with longer comments / more complex edits.

Screenshots

I don't know what the actual edit was, but certainly not this:
image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions