mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
The stored scroll for a file link was an estimate from a fixed 24px line height, so wrapped lines left the target far below the view. Once the file renders, measure the selected row and scroll to it. Clicking a link into an already open file also remounted the code view at the top: the reread replaced the loaded value the view was built from. Read the text through contents() so the view updates in place. |
||
|---|---|---|
| .. | ||
| performance | ||
| regression | ||
| reproduction/timeline-suspense | ||
| screenshots | ||
| service-worker | ||
| user-story | ||
| utils | ||
| AGENTS.md | ||
| tsconfig.json | ||