https://gitlab.synchro.net/main/sbbs/-/commit/ba1ad1f50cc8b67a858a43a4
Modified Files:
exec/sbbslist.js
Log Message:
sbbslist: fix blank page/stuck scrolling after Find or Go To
After scrolling down the list and using Find (F) to narrow it, the page
could go blank and every keystroke (up or down) scrolled up one line.
Go To (G) an entry beyond the current page didn't scroll it into view.
determine_top() compared the current entry against the stale page top
after clamping it, and stepped that stale top by only one line, a
regression from 3ad9155217 (notes-5-feat, 2020-03-29). After a Find
shrank the list, top stayed past the end of the list and crept back one
line per keystroke. Now the page top is computed from the current entry (scrolling just enough to show it), clamped to keep a full page shown,
and Find resets the selection to the first match.
Reported by Nightfox.
Co-Authored-By: Claude Opus 5.5 <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net