summaryrefslogtreecommitdiffstats
path: root/cmd-set-window-option.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-07-30 20:26:20 +0000
committerTiago Cunha <tcunha@gmx.com>2009-07-30 20:26:20 +0000
commit8ce1f0b0477c456534ff4e3204afbfe18a69d905 (patch)
tree86e1ff95e4fb530ae59c2c4b4bb4475a19c54b13 /cmd-set-window-option.c
parent6fbfcfc0d78c9b00181bb2465ede73b18ac92cef (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.
Diffstat (limited to 'cmd-set-window-option.c')
0 files changed, 0 insertions, 0 deletions