tui: open transcript mode at the bottom (#2592)

this got lost when we switched /diff to use the pager.
This commit is contained in:
Jeremy Rose
2025-08-22 16:06:41 -07:00
committed by GitHub
parent 85099017fd
commit 6de9541f0a

View File

@@ -28,7 +28,7 @@ impl TranscriptApp {
pub(crate) fn new(transcript_lines: Vec<Line<'static>>) -> Self { pub(crate) fn new(transcript_lines: Vec<Line<'static>>) -> Self {
Self { Self {
transcript_lines, transcript_lines,
scroll_offset: 0, scroll_offset: usize::MAX,
is_done: false, is_done: false,
title: "T R A N S C R I P T".to_string(), title: "T R A N S C R I P T".to_string(),
} }
@@ -105,7 +105,7 @@ impl TranscriptApp {
self.scroll_offset = self.scroll_offset.saturating_sub(area.height as usize); self.scroll_offset = self.scroll_offset.saturating_sub(area.height as usize);
} }
KeyEvent { KeyEvent {
code: KeyCode::PageDown, code: KeyCode::PageDown | KeyCode::Char(' '),
kind: KeyEventKind::Press | KeyEventKind::Repeat, kind: KeyEventKind::Press | KeyEventKind::Repeat,
.. ..
} => { } => {