This commit is contained in:
Matthew Zeng
2026-03-08 18:34:07 -07:00
parent a684a36091
commit d92fb2a6c7
6 changed files with 293 additions and 31 deletions

View File

@@ -802,6 +802,13 @@ impl BottomPane {
true
}
pub(crate) fn selected_index_for_active_view(&self, view_id: &'static str) -> Option<usize> {
self.view_stack
.last()
.filter(|view| view.view_id() == Some(view_id))
.and_then(|view| view.selected_index())
}
/// Update the pending-input preview shown above the composer.
pub(crate) fn set_pending_input_preview(
&mut self,