fix(plugins): make new auxiliary functions public (#2765)
This commit is contained in:
parent
62a7abe1a9
commit
36237f0414
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue