From 36237f04143219468395654e9d9e5e15a566d114 Mon Sep 17 00:00:00 2001 From: Nacho114 <17376073+Nacho114@users.noreply.github.com> Date: Fri, 13 Oct 2023 12:44:55 +0200 Subject: [PATCH] fix(plugins): make new auxiliary functions public (#2765) --- zellij-tile/src/shim.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zellij-tile/src/shim.rs b/zellij-tile/src/shim.rs index 31445620..09bb7f59 100644 --- a/zellij-tile/src/shim.rs +++ b/zellij-tile/src/shim.rs @@ -618,7 +618,7 @@ pub fn switch_session_with_focus( #[allow(unused)] /// Returns the `TabInfo` corresponding to the currently active tab -fn get_focused_tab(tab_infos: &Vec) -> Option { +pub fn get_focused_tab(tab_infos: &Vec) -> Option { for tab_info in tab_infos { if tab_info.active { return Some(tab_info.clone()); @@ -629,7 +629,7 @@ fn get_focused_tab(tab_infos: &Vec) -> Option { #[allow(unused)] /// Returns the `PaneInfo` corresponding to the currently active pane (ignoring plugins) -fn get_focused_pane(tab_position: usize, pane_manifest: &PaneManifest) -> Option { +pub fn get_focused_pane(tab_position: usize, pane_manifest: &PaneManifest) -> Option { let panes = pane_manifest.panes.get(&tab_position); if let Some(panes) = panes { for pane in panes {