We changed somewhat recently to us the pty when tmux was run inside
itself to work out the current pane. This is confusing in many cases
(particularly notable is that "tmux neww\; splitw" would not split the
new window), and the few advantages do not make up for the confusion.

So drop this behaviour and return to using the current window and pane;
keep the pty check but only use it to limit the list of possible current
sessions.
1 file changed
tree: 28555be0cf40ce351c954a902b13c5bd072dc201
  1. Makefile
  2. alerts.c
  3. arguments.c
  4. array.h
  5. attributes.c
  6. cfg.c
  7. client.c
  8. cmd-attach-session.c
  9. cmd-bind-key.c
  10. cmd-break-pane.c
  11. cmd-capture-pane.c
  12. cmd-choose-buffer.c
  13. cmd-choose-client.c
  14. cmd-choose-tree.c
  15. cmd-clear-history.c
  16. cmd-command-prompt.c
  17. cmd-confirm-before.c
  18. cmd-copy-mode.c
  19. cmd-detach-client.c
  20. cmd-display-message.c
  21. cmd-display-panes.c
  22. cmd-find-window.c
  23. cmd-find.c
  24. cmd-has-session.c
  25. cmd-if-shell.c
  26. cmd-join-pane.c
  27. cmd-kill-pane.c
  28. cmd-kill-server.c
  29. cmd-kill-session.c
  30. cmd-kill-window.c
  31. cmd-list-buffers.c
  32. cmd-list-clients.c
  33. cmd-list-keys.c
  34. cmd-list-panes.c
  35. cmd-list-sessions.c
  36. cmd-list-windows.c
  37. cmd-list.c
  38. cmd-load-buffer.c
  39. cmd-lock-server.c
  40. cmd-move-window.c
  41. cmd-new-session.c
  42. cmd-new-window.c
  43. cmd-paste-buffer.c
  44. cmd-pipe-pane.c
  45. cmd-queue.c
  46. cmd-refresh-client.c
  47. cmd-rename-session.c
  48. cmd-rename-window.c
  49. cmd-resize-pane.c
  50. cmd-respawn-pane.c
  51. cmd-respawn-window.c
  52. cmd-rotate-window.c
  53. cmd-run-shell.c
  54. cmd-save-buffer.c
  55. cmd-select-layout.c
  56. cmd-select-pane.c
  57. cmd-select-window.c
  58. cmd-send-keys.c
  59. cmd-send-prefix.c
  60. cmd-set-buffer.c
  61. cmd-set-environment.c
  62. cmd-set-hook.c
  63. cmd-set-option.c
  64. cmd-show-buffer.c
  65. cmd-show-environment.c
  66. cmd-show-messages.c
  67. cmd-show-options.c
  68. cmd-source-file.c
  69. cmd-split-window.c
  70. cmd-string.c
  71. cmd-swap-pane.c
  72. cmd-swap-window.c
  73. cmd-switch-client.c
  74. cmd-unbind-key.c
  75. cmd-wait-for.c
  76. cmd.c
  77. colour.c
  78. control-notify.c
  79. control.c
  80. environ.c
  81. format.c
  82. grid-view.c
  83. grid.c
  84. hooks.c
  85. input-keys.c
  86. input.c
  87. job.c
  88. key-bindings.c
  89. key-string.c
  90. layout-custom.c
  91. layout-set.c
  92. layout.c
  93. log.c
  94. mode-key.c
  95. names.c
  96. notify.c
  97. options-table.c
  98. options.c
  99. paste.c
  100. proc.c
  101. procname.c
  102. resize.c
  103. screen-redraw.c
  104. screen-write.c
  105. screen.c
  106. server-client.c
  107. server-fn.c
  108. server.c
  109. session.c
  110. signal.c
  111. status.c
  112. style.c
  113. tmux.1
  114. tmux.c
  115. tmux.h
  116. tty-acs.c
  117. tty-keys.c
  118. tty-term.c
  119. tty.c
  120. utf8.c
  121. window-choose.c
  122. window-clock.c
  123. window-copy.c
  124. window.c
  125. xmalloc.c
  126. xmalloc.h
  127. xterm-keys.c