Rename Internal::idle_pane to active_pane
This commit is contained in:
parent
33f33ed4e3
commit
cfc2b55e05
2 changed files with 3 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue