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
{{ message }}
Repository navigation
Commit a66d279
Browse filesBrowse the repository at this point in the historyBrowse files
fix(web): copying a file preview selection returns the selected lines after scrolling
The read-only file preview mounts only the rows near the viewport, so the
browser's selection lost an end as soon as that end's row unmounted: a drag
that scrolled copied the mounted rows or the whole file, and a click, scroll
and Shift+click selected nothing.
The preview now keeps the selection as offsets into the file's text. It reads
the browser's selection on every change, keeps an end whose row is no longer
mounted, and draws the selection back onto the rows after each render. Copy
takes the text from those offsets whenever part of it is not mounted. The
focus always comes from the browser's own selection, so a drag held past the
edge of the preview follows the native autoscroll.
Fixes#15927
Co-Authored-By: Claude Fable 5.2 <[email protected]>
0 commit comments