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 <
noreply@openai.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net