Switching between tabs with different status bar visibility causes vim to render wrong lines
- iTerm2 version: Build 3.3.9
- OS version: MacOS Mojave 10.14.6
- Attach com.googlecode.iterm2.plistcom.googlecode.iterm2.plist here (drag-drop from finder into this window)
Detailed steps to reproduce the problem:
- In iTerm, create a new profile with status bar disabled.
- Duplicate the profile, and in the duplicated profile, enable status bar.
- From the iTerm
Profiles
menu, choose the profile with the status bar disabled. This will open a new iTerm window using that profile. - Within that tab, open vim. Note that the very bottom line of vim is the status text.
- From the iTerm
Profiles
menu, choose the profile with the status bar enabled. This will open a new iTerm tab, within the existing window, using that profile. - Click on the tab with the status bar disabled, which has vim running. Note that the lines of text have shifted upwards by one line. The vim status text at the bottom of the screen now appears one line above the bottom.
- Press CTRL-L to refresh VIM's screen. The vim status text at the bottom of the screen now appears at the very bottom line.
What happened:
Switching between a tab without status bar, and a tab with status bar, apparently causes iTerm to send information to vim regarding incorrect line count for terminal height. This has the unfortunate side effect of mis-positioning the text and cursor within vim, which more than once, has caused me to totally screw up whatever document I was working on at the time.
What should have happened:
iTerm should not cause vim to corrupt itself.