Shell integration prompt marks clobbers trailing spaces when tab-completing in zsh
Configuration
- iTerm2 version: 3.2.6
- OS version: macOS 10.14.2[com.googlecode.iterm2.plist]
- Attach ~/Library/Preferences/com.googlecode.iterm2.plist
- Before hitting the tab key:
- After hitting the tab key:
Detailed steps to reproduce the problem
- Use zsh with a prompt that includes a trailing space
- Install shell integration and mark
- Tab complete to see the prompt's trailing space disappear
- Setting iterm2_prompt_mark to
function iterm2_prompt_mark() {}
to remove the mark (or using tmux) prevents the space from being removed.
What happened
The prompt's trailing space is clobbered.
What should have happened
The space should not be clobbered.