Window size bug with tmux integration on version >= 3.1.0
-
iTerm2 version: >= 3.1.0, the problem first occurred in 3.0.20160815-nightly not present in 3.0.20160814-nightly
-
OS version: 10.13.0 (Also occurred on 10.12.x, perhaps others?)
Detailed steps to reproduce the problem:
- Attach to tmux with integration
- Create a split tab between two different terminals
- Maximize one of the sub windows to be full screen in that tab
- Switch focus to different tab, window, or program, then switch back
- The "full screen" tab still renders as the whole tab's window, however
stty -a
shows it's size to be the unmaximized dimensions again, so things liketop
render the smaller size inside it, and the command line wraps strangely. Re-maximizing the tab will correct the dimensions, and toggling things once more will restore the split view.
What happened: It seems that tmux integration is losing the maximized terminals's dimensions when focus is reacquired. The correct dimensions are present until that point. Perhaps it's just forgetting that the window was maximized to fill the whole tab?
What should have happened: Terminal dimensions should remain the same as the rendering window's dimensions, even when using tmux integration. Things seems to work fine when not using tmux integration mode. This was a regression in the 3.1.x line specifically, as this problem doesn't occur in <= v3.0.15