You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code shown in the TUI is not highlighted correctly.
OpenCode version
1.0.9
Steps to reproduce
Not sure where it breaks but thats the first code snippet I saw after I recently updated (I was at a version before the redesign). I assume its the + and - from the diff.
This issue might be a duplicate of existing issues. Please check:
No highlighting in diffs #3687: Very similar issue about missing diff highlighting in v1.0.7+ - both report problems with red/green diff highlights not working properly
Activity
github-actions commentedon Nov 1, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
kommander commentedon Nov 1, 2025
Ah yes, are there tabs in the code? There currently is an issue with tabs. Will be fixed.
tsukinoko-kun commentedon Nov 2, 2025
Yes. I use tabs for indentation.
I assume rendering the tab character wider than one character messes up the token positions?
kellpossible commentedon Nov 4, 2025
renders this unusable for go code
thdxr commentedon Nov 4, 2025
we're working on this