Reuse the transcript overlay's interaction check for its browsing footer (#65156)

## What changed

Use `has_active_interaction()` to decide whether to show the browsing
footer, removing the duplicate checks for pending selection mode and
active viewport interactions.

GitOrigin-RevId: 9264a427feaef94bc298a18b79d440de721aadb4
This commit is contained in:
Felipe Coury
2026-12-02 03:46:24 +00:00
committed by copyberry
parent ed3ccd4c21
commit 9f33c83cb6
+1 -2
View File
@@ -89,8 +89,7 @@ impl TranscriptOverlay {
pub(crate) fn render(&mut self, area: Rect, buf: &mut Buffer) {
Clear.render(area, buf);
let browsing = self.browsing_footer.is_some()
&& !self.pending_select_mode
&& !self.view.has_active_interaction()
&& !self.has_active_interaction()
&& self.view.history != TranscriptHistoryState::Failed;
let mut body = area;
{