CVSROOT: /cvs Module name: src Changes by: n...@cvs.openbsd.org 2009/07/29 11:03:16
Modified files: usr.bin/tmux : cmd.c Log message: 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.