Swap Session does not cause a SIGWINCH in both sessions.
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: 3.2.0beta5
- OS version:10.11.6 El Capitan
- Attach ~/Library/Preferences/com.googlecode.iterm2.plist here (drag-drop from finder into this window) com.googlecode.iterm2.plist
- Attach a debug log, if possible. Instructions at https://iterm2.com/debuglog
- Are you reporting a performance issue, excessive CPU usage, or a hang? Please attach a sample. Instructions at https://gitlab.com/gnachman/iterm2/wikis/HowToSample
- Are you reporting a crash? Please attach the crash log. Instructions at https://gitlab.com/gnachman/iterm2/wikis/crash-logs
- Are you reporting excessive memory usage? Please attach a heap analysis: https://gitlab.com/gnachman/iterm2/wikis/heapshot
Detailed steps to reproduce the problem: 1.Create 2 windows, one for the left and right halves of the screen. 2. Horizontally split the right window into 2 panes. 3. Run some curses programme such as vim in the left full height window and the right lower pane (to see the effect). 4. Select "Swap Session" in the left full height window, and swap it with the right lower pane.
What happened: The session from the right lower pane will resize to the full height of the left window; correct behaviour. The session from the left full height window will still be full height: the tty believes it is full height and it looks like there's actually a full height pane there, just with its top half hidden "under" the upper right pane - the cursor is out of sight in the hidden upper area and so forth; incorrect behaviour.
What should have happened: The session from the left full height window should have resized to match the shorter pane size of its new location.
Other observations: Dragging the horizontal separator between the two right hand panes causes the lower pane's terminal session to resize to the pane size correctly.