File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -728,7 +728,7 @@ def select(self) -> "Window":
728
728
# Computed properties
729
729
#
730
730
@property
731
- def attached_pane (self ) -> t .Optional ["Pane" ]:
731
+ def active_pane (self ) -> t .Optional ["Pane" ]:
732
732
"""Return attached :class:`Pane`."""
733
733
panes = self .panes .filter (pane_active = "1" )
734
734
if len (panes ) > 0 :
@@ -820,6 +820,21 @@ def width(self) -> t.Optional[str]:
820
820
#
821
821
# Legacy: Redundant stuff we want to remove
822
822
#
823
+ @property
824
+ def attached_pane (self ) -> t .Optional ["Pane" ]:
825
+ """Return attached :class:`Pane`.
826
+
827
+ Notes
828
+ -----
829
+ .. deprecated:: 0.30
830
+
831
+ Deprecated in favor of :meth:`.active_pane`.
832
+ """
833
+ panes = self .panes .filter (pane_active = "1" )
834
+ if len (panes ) > 0 :
835
+ return panes [0 ]
836
+ return None
837
+
823
838
def select_window (self ) -> "Window" :
824
839
"""Select window.
825
840
You can’t perform that action at this time.
0 commit comments