Wrong linenumber in search-result, when line is to long #12469

Closed
opened 2025-11-02 10:10:47 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @zokkis on GitHub (Feb 11, 2024).

Description

When creating files with extra long lines, the text wraps and the linenumber is on the wrong line

Gitea Version

1.21.5

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

image
Line 9 should be the line with "89485bfaa6a42365fbb052f9b34fc809e1bf6d3ed0c3b29376a22104030780c12"

Git Version

No response

Operating System

No response

How are you running Gitea?

Download and systemd

Database

SQLite

Originally created by @zokkis on GitHub (Feb 11, 2024). ### Description When creating files with extra long lines, the text wraps and the linenumber is on the wrong line ### Gitea Version 1.21.5 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots ![image](https://github.com/go-gitea/gitea/assets/72873130/719baecf-ce71-4495-9f6b-8b017884f8c4) Line 9 should be the line with "89485bfaa6a42365fbb052f9b34fc809e1bf6d3ed0c3b29376a22104030780c12" ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Download and systemd ### Database SQLite
GiteaMirror added the issue/confirmedtype/bug labels 2025-11-02 10:10:47 -06:00
Author
Owner

@yp05327 commented on GitHub (Feb 15, 2024):

Can you provide a sample?

@yp05327 commented on GitHub (Feb 15, 2024): Can you provide a sample?
Author
Owner

@zokkis commented on GitHub (Feb 15, 2024):

Can you provide a sample?

There is a screenshot? What do you want more?

  • make a file with a long line
  • Search your repo for this line
  • see the result
@zokkis commented on GitHub (Feb 15, 2024): > Can you provide a sample? There is a screenshot? What do you want more? - make a file with a long line - Search your repo for this line - see the result
Author
Owner

@yp05327 commented on GitHub (Feb 19, 2024):

After several tries, successfully reproduced this issue.
image
image

@yp05327 commented on GitHub (Feb 19, 2024): After several tries, successfully reproduced this issue. ![image](https://github.com/go-gitea/gitea/assets/18380374/b6e15b93-b615-4706-8f79-3b47b92c30b5) ![image](https://github.com/go-gitea/gitea/assets/18380374/6b80d46f-0658-4398-b21e-7bd6433024d7)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12469