tmux integration bug when multiple panels are killed
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version:Build 3.2.9
- OS version: 10.14.4 (18E226)
- Attach ~/Library/Preferences/com.googlecode.iterm2.plist here (drag-drop from finder into this window)com.googlecode.iterm2.plist
$ tmux -CC new -s abc
** tmux mode started **
Command Menu
----------------------------
esc Detach cleanly.
X Force-quit tmux mode.
L Toggle logging.
C Run tmux command.
Detached
select-pane -t %1
set -t $0 @iterm2_size 80,12; refresh-client -C 80,12; list-windows -F "#{window_id} #{window_layout} #{window_flags}"
$ select-pane -t %1
zsh: command not found: select-pane
$ set -t $0 @iterm2_size 80,12; refresh-client -C 80,12; list-windows -F "#{window_id} #{window_layout} #{window_flags}"
set: can't change option: -t
Detailed steps to reproduce the problem:
- Create and attach a new tmux session:
tmux -CC new -s abc
- In the new tmux native window, split the window multiple times.
- Kill the tmux session by clicking cross of the native window.
What happened:
It seems some commands that are supposed to send to tmux are sent to the actual shell. After killing the session, it automatically input select-pane -t %1
and set -t $0 @iterm2_size 80,12; refresh-client -C 80,12; list-windows -F "#{window_id} #{window_layout} #{window_flags}"
to my shell.