iterm2 + tmux -CC + vim + mouse click after column 95 = spurious characters
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: 3.1.5
- OS version: 10.11.6
- 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 debuglog.txt Debug log turned on just before mouse click after column 95, and turned off just after mouse click.
- Are you reporting a performance issue 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
Detailed steps to reproduce the problem:
- Using tmux 2.6, and Vim 8.0 (though can duplicate older versions of tmux and vim, e.g. 2.4, 7.4 respectively)
- tmux -CC
- vim (even starting from a null .vimrc)
- :set mouse=a
- insert more than 95 columns of stuff in a line
- click on something past column 95
What happened: Spurious characters get introduced wherever the cursor is at.
What should have happened: The cursor should have moved to where the mouse click happened.
I recognize that this might not be an iterm2 issue, since it involves the combination of iterm2, tmux, and vim, but thought I would start here. A coworker was able to reproduce this on his system. Here are a couple of things I've tried and observed: Just running plain old tmux (not with tmux -CC) does not have this problem. Running vim in iterm2, but outside of tmux -CC does not have this problem. Running iterm2 + tmux -CC + emacs + M-x xterm-mouse-mode + clicking after column 95 does not have this problem.