Skip to content

Commit fdafdd2

Browse files
committed
refactor(cli/load): Session.attach_session() -> Session.attach()
Update to use the new libtmux v0.50.0 API. The attach_session() method was deprecated in favor of attach().
1 parent 0ea6d1d commit fdafdd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tmuxp/cli/load.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def _reattach(builder: WorkspaceBuilder) -> None:
126126
builder.session.switch_client()
127127

128128
else:
129-
builder.session.attach_session()
129+
builder.session.attach()
130130

131131

132132
def _load_attached(builder: WorkspaceBuilder, detached: bool) -> None:
@@ -149,7 +149,7 @@ def _load_attached(builder: WorkspaceBuilder, detached: bool) -> None:
149149

150150
os.environ["TMUX"] = tmux_env # set TMUX back again
151151
elif not detached:
152-
builder.session.attach_session()
152+
builder.session.attach()
153153

154154

155155
def _load_detached(builder: WorkspaceBuilder) -> None:

0 commit comments

Comments
 (0)