iTerm2 selection goes crazy on macOS Monterey
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: Build 3.4.7beta2
- OS version: macOS 12.0 Developer Preview 1 (21A5248p)
- Attach ~/Library/Preferences/com.googlecode.iterm2.plist here (drag-drop from finder into this window)
-
Attach a debug log, if possible. Instructions at https://iterm2.com/debuglog- Cannot attach a debug log due to the likelihood of proprietary / company-owned data being present.
- Attach a screen capture video if it would make the reproduction steps clearer.
Are you reporting a performance issue, excessive CPU usage, or a hang? Please attach a sample. Instructions at https://gitlab.com/gnachman/iterm2/wikis/HowToSampleAre you reporting a crash? Please attach the crash log. Instructions at https://gitlab.com/gnachman/iterm2/wikis/crash-logsAre you reporting excessive memory usage? Please attach a heap analysis: https://gitlab.com/gnachman/iterm2/wikis/heapshot
Detailed steps to reproduce the problem:
- Use iTerm2 normally
- At some point,
$LINES
gets messed up- In another example video I have (can't share for $REASONS), LINES=27, in another LINES=40
- The terminal window is full-screen, should be LINES=81
-
$LINES
is a magic variable that gets auto-set when the terminal is resized, but I am not doing anything with terminal resizing, and nothing fancy with e.g. curses/ncurses/tui stuff.
- iTerm2 does not handle this well
- See video
- Resizing the terminal window in any direction fixes
$LINES
and everything works perfectly again... for a while
What happened:
Trying to select text jumps back in the terminal buffer to some unrelated content.
What should have happened:
Selecting the text should work normally.