Wrong line calculation in edit diff #3842

Open
opened 2026-02-16 17:41:39 -05:00 by yindo · 1 comment
Owner

Originally created by @emincangencer on GitHub (Dec 24, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

As can be seen in the image, the the 23th line isn't written in the left for the same thing on the right even though they were unchanged, and the red deletion highlight messed up probably because of the wrong line calculation as

  • Read /novels/{novel}/config/ files for voice and POV guidelines

should have been highlighted.

Image

OpenCode version

1.0.195

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @emincangencer on GitHub (Dec 24, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description As can be seen in the image, the the 23th line isn't written in the left for the same thing on the right even though they were unchanged, and the red deletion highlight messed up probably because of the wrong line calculation as - Read /novels/{novel}/config/ files for voice and POV guidelines should have been highlighted. <img width="1315" height="219" alt="Image" src="https://github.com/user-attachments/assets/32cb7a6b-fbe9-4e96-b092-5028c8deed87" /> ### OpenCode version 1.0.195 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 17:41:39 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 24, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #5446: Edit tool diff crops "-" character - Similar diff display and line rendering issues where the diff view is not properly aligned

Feel free to ignore if this doesn't address your specific case.

@github-actions[bot] commented on GitHub (Dec 24, 2025): This issue might be a duplicate of existing issues. Please check: - #5446: Edit tool diff crops "-" character - Similar diff display and line rendering issues where the diff view is not properly aligned Feel free to ignore if this doesn't address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3842