File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ def by(val) -> bool:
349349 target_children = list (filter (by , self .children ))
350350 if first :
351351 return target_children [0 ]
352- return return target_children
352+ return target_children
353353
354354 def get_by_id (self , id ):
355355 """
Original file line number Diff line number Diff line change @@ -502,10 +502,9 @@ def attached_pane(self) -> t.Optional[Pane]:
502502 :class:`Pane`
503503 """
504504 for pane in self ._panes :
505- if "pane_active" in pane :
506- # for now pane_active is a unicode
507- if pane .get ("pane_active" ) == "1" :
508- return Pane (window = self , ** pane )
505+ # for now pane_active is a unicode
506+ if "pane_active" in pane and pane .get ("pane_active" ) == "1" :
507+ return Pane (window = self , ** pane )
509508
510509 def _list_panes (self ) -> t .List [PaneDict ]:
511510 panes = self .server ._update_panes ()._panes
You can’t perform that action at this time.
0 commit comments