Skip to content

Commit 1f63506

Browse files
committed
Remove print()
1 parent 81d227b commit 1f63506

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

tmuxp/cli.py

-27
Original file line numberDiff line numberDiff line change
@@ -809,13 +809,6 @@ def command_shell(
809809
else:
810810
current_pane = util.get_current_pane(server=server)
811811

812-
try:
813-
current_session = session = util.get_session(
814-
server=server, current_pane=current_pane
815-
)
816-
except Exception:
817-
current_session = None
818-
819812
try:
820813
session = util.get_session(
821814
server=server, session_name=session_name, current_pane=current_pane
@@ -830,26 +823,6 @@ def command_shell(
830823
else:
831824
return
832825

833-
if current_session is not None and current_session.id != session.id:
834-
print('in')
835-
if not detached and (
836-
answer_yes
837-
or click.confirm(
838-
'Switch / attach to %s and run shell from there?'
839-
% click.style(session_name, fg='green'),
840-
default=True,
841-
)
842-
):
843-
if current_session.id != session.id:
844-
session.attached_window.attached_pane.send_keys(
845-
'tmuxp shell', enter=True
846-
)
847-
if 'TMUX' in os.environ:
848-
session.switch_client()
849-
else:
850-
session.attach_session()
851-
return
852-
853826
if current_pane['session_id'] != session.id:
854827
current_pane = None
855828

tmuxp/util.py

-4
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,10 @@ def get_window(session, window_name=None, current_pane=None):
137137
if not window:
138138
raise exc.TmuxpException('Window not found: %s' % window_name)
139139
elif current_pane is not None:
140-
print('get_window: current_pane')
141140
window = session.find_where({'window_id': current_pane['window_id']})
142141
else:
143-
print('get_window: else')
144142
window = session.list_windows()[0]
145143

146-
print(f'get_window: {window}')
147-
148144
return window
149145

150146

0 commit comments

Comments
 (0)