Move the nested check from client to server and compare the client tty
authornicm <nicm@openbsd.org>
Thu, 4 Jun 2015 23:27:51 +0000 (23:27 +0000)
committernicm <nicm@openbsd.org>
Thu, 4 Jun 2015 23:27:51 +0000 (23:27 +0000)
commitfde81079426c43334bacc36e8a19514caf5a9677
tree9236322d8d7b9f3853e620a1700ba2dfca57edbd
parent82db8d3650cba2b2e1d98752c6869d2cc5e3049a
Move the nested check from client to server and compare the client tty
name to all the pane pty names instead of comparing socket paths. This
means that "new -d" will work without unsetting $TMUX.
usr.bin/tmux/client.c
usr.bin/tmux/cmd-attach-session.c
usr.bin/tmux/cmd-new-session.c
usr.bin/tmux/server-client.c
usr.bin/tmux/tmux.h