Skip to content

Commit 2067d3d

Browse files
committed
Fix bug where kill-session would request stderr. Fix bug where tab completion looked for sessions with no server on.
1 parent 8424dca commit 2067d3d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tmuxp/cli.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,11 @@ def session_complete(command, commands, ctext):
432432
commands[:] = []
433433
ctext_subargs = ctext.replace(command + ' ', '')
434434

435-
sessions = [s.get('session_name') for s in t._sessions]
436-
commands.extend([c for c in sessions if ctext_subargs in c])
435+
try:
436+
sessions = [s.get('session_name') for s in t._sessions]
437+
commands.extend([c for c in sessions if ctext_subargs in c])
438+
except Exception:
439+
pass
437440

438441
def config_complete(command, commands, ctext):
439442
if ctext.startswith(command + ' '):

0 commit comments

Comments
 (0)