summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNacho114 <17376073+Nacho114@users.noreply.github.com>2023-10-13 12:44:55 +0200
committerGitHub <noreply@github.com>2023-10-13 12:44:55 +0200
commit36237f04143219468395654e9d9e5e15a566d114 (patch)
treeb33027735c06d80a5d0d34686b93d37259a0097a
parent62a7abe1a908aa0ab2981f2acf6e21a76ff2a6f6 (diff)
fix(plugins): make new auxiliary functions public (#2765)
-rw-r--r--zellij-tile/src/shim.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/zellij-tile/src/shim.rs b/zellij-tile/src/shim.rs
index 31445620f..09bb7f597 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<TabInfo>) -> Option<TabInfo> {
+pub fn get_focused_tab(tab_infos: &Vec<TabInfo>) -> Option<TabInfo> {
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<TabInfo>) -> Option<TabInfo> {
#[allow(unused)]
/// 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);
if let Some(panes) = panes {
for pane in panes {