commit | 8ce1f0b0477c456534ff4e3204afbfe18a69d905 | [log] [download] |
---|---|---|
author | Tiago Cunha <tcunha@gmx.com> | Thu Jul 30 20:26:20 2009 +0000 |
committer | Tiago Cunha <tcunha@gmx.com> | Thu Jul 30 20:26:20 2009 +0000 |
tree | 86e1ff95e4fb530ae59c2c4b4bb4475a19c54b13 | |
parent | 6fbfcfc0d78c9b00181bb2465ede73b18ac92cef [diff] |
Sync OpenBSD patchset 197: Add an additional heuristic to work out the current session when run from the command line. The name of all slave ptys in the server is known, so if the client was run on a tty, look for any sessions containing that tty and use the most recently created. This is more reliable than looking at $TMUX if windows have been moved or linked between sessions.