fix(plugins): make new auxiliary functions public (#2765)

This commit is contained in:
Nacho114 2023-10-13 12:44:55 +02:00 committed by GitHub
parent 62a7abe1a9
commit 36237f0414
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -618,7 +618,7 @@ pub fn switch_session_with_focus(
#[allow(unused)] #[allow(unused)]
/// Returns the `TabInfo` corresponding to the currently active tab /// Returns the `TabInfo` corresponding to the currently active tab
fn get_focused_tab(tab_infos: &Vec<TabInfo>) -> Option<TabInfo> { pub fn get_focused_tab(tab_infos: &Vec<TabInfo>) -> Option<TabInfo> {
for tab_info in tab_infos { for tab_info in tab_infos {
if tab_info.active { if tab_info.active {
return Some(tab_info.clone()); return Some(tab_info.clone());
@ -629,7 +629,7 @@ fn get_focused_tab(tab_infos: &Vec<TabInfo>) -> Option<TabInfo> {
#[allow(unused)] #[allow(unused)]
/// Returns the `PaneInfo` corresponding to the currently active pane (ignoring plugins) /// Returns the `PaneInfo` corresponding to the currently active pane (ignoring plugins)
fn get_focused_pane(tab_position: usize, pane_manifest: &PaneManifest) -> Option<PaneInfo> { pub fn get_focused_pane(tab_position: usize, pane_manifest: &PaneManifest) -> Option<PaneInfo> {
let panes = pane_manifest.panes.get(&tab_position); let panes = pane_manifest.panes.get(&tab_position);
if let Some(panes) = panes { if let Some(panes) = panes {
for pane in panes { for pane in panes {