Rename Internal::idle_pane to active_pane

This commit is contained in:
Héctor Ramón Jiménez 2020-03-20 11:54:42 +01:00
parent 33f33ed4e3
commit cfc2b55e05
2 changed files with 3 additions and 6 deletions

View file

@ -109,10 +109,7 @@ impl<T> State<T> {
/// [`Pane`]: struct.Pane.html
/// [`State`]: struct.State.html
pub fn active(&self) -> Option<Pane> {
match self.internal.action {
Action::Idle { focus } => focus,
_ => None,
}
self.internal.active_pane()
}
/// Returns the adjacent [`Pane`] of another [`Pane`] in the given
@ -289,7 +286,7 @@ impl Internal {
self.action
}
pub fn idle_pane(&self) -> Option<Pane> {
pub fn active_pane(&self) -> Option<Pane> {
match self.action {
Action::Idle { focus } => focus,
_ => None,