Top jump: surface the page head, not just the first selectable row

Shift+F5 (and Home) used to park the first choice under its pinned
heading copies; now the scroll goes with it, so the headings and their
preamble come back for real — on the select lists and the node page.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Jean-Pierre MartineauandClaude Fable 5 committed 2026-08-08 19:11:00 -04:00
1 parent 6787aace3c
commit 05f3dc9bc6
2 files changed
+7

No files matched your search

+3
View File
@@ -564,6 +564,9 @@ class NodeDetailScreen(Screen):
if n:
self._row_index = 0
self._sync_route_sel(focus)
# On a terminal too short for the pinned layout the frame follows the cursor;
# jumping home should surface the very top of the page, header included.
self.scroll_to_top()
elif action in ("end", "ctrl_end"):
if n:
self._row_index = n - 1