Skip to content

Commit

Permalink
Fix bug where kill-session would request stderr. Fix bug where tab co…
Browse files Browse the repository at this point in the history
…mpletion looked for sessions with no server on.
  • Loading branch information
tony committed Oct 24, 2013
1 parent 8424dca commit 2067d3d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tmuxp/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,11 @@ def session_complete(command, commands, ctext):
commands[:] = []
ctext_subargs = ctext.replace(command + ' ', '')

sessions = [s.get('session_name') for s in t._sessions]
commands.extend([c for c in sessions if ctext_subargs in c])
try:
sessions = [s.get('session_name') for s in t._sessions]
commands.extend([c for c in sessions if ctext_subargs in c])
except Exception:
pass

def config_complete(command, commands, ctext):
if ctext.startswith(command + ' '):
Expand Down

0 comments on commit 2067d3d

Please sign in to comment.