• src/syncterm/Wren.adoc src/syncterm/scripts/auto/picker/file_picker.wr

    From Deucе@1:103/705 to Git commit to main/sbbs/master on Mon Jul 20 11:51:19 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/793574a598a0d1140900f72c
    Modified Files:
    src/syncterm/Wren.adoc src/syncterm/scripts/auto/picker/file_picker.wren src/syncterm/scripts/sftp_app.wren ui_list.wren ui_list_test.wren
    Log Message:
    wren: preserve list view across refreshes

    ListView.items= reset the selection and scrollTop whenever a caller
    rebuilt its row labels. Callers then restored the selected index, causing ensureVisible_() to place that row at the bottom of the viewport.

    Preserve the selected index and viewport when replacing a populated
    list, clamping only when the replacement is shorter. Add resetItems() for actual collection navigation and use it when changing file-picker and
    SFTP directories.

    Document the two replacement modes and test preservation across both an
    item refresh and subsequent layout.

    Co-Authored-By: OpenAI Codex <[email protected]>
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)