Skip to content

Commit 2f1cd2c

Browse files
committed
fix(pane,window): List all windows / panes
1 parent cf1b6a2 commit 2f1cd2c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/libtmux/pane.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ class Pane(Obj):
7070
def refresh(self) -> None:
7171
"""Refresh pane attributes from tmux."""
7272
assert isinstance(self.pane_id, str)
73-
return super()._refresh(obj_key="pane_id", obj_id=self.pane_id)
73+
return super()._refresh(
74+
obj_key="pane_id",
75+
obj_id=self.pane_id,
76+
list_extra_args=("-a",),
77+
)
7478

7579
@classmethod
7680
def from_pane_id(cls, server: "Server", pane_id: str) -> "Pane":

src/libtmux/window.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ def refresh(self) -> None:
8585
obj_key="window_id",
8686
obj_id=self.window_id,
8787
list_cmd="list-windows",
88+
list_extra_args=("-a",),
8889
)
8990

9091
@classmethod

0 commit comments

Comments
 (0)