Pressing tab twice for completion leaves ugly artefacts on screen on zsh
zsh tab completions seems not to move the cursor correctly and you end-up with confusing text on screen. Unable to reproduce with native Terminal.app and it does happen only with iTerm.app so far.
- iTerm2 version: 3.14, 3.15 beta and 3.1 beta
- OS version: 10.12
- Both were configured to use same terminal emulation: xterm-color256
To me it looks like the cursor is not sent back when the tab completion happens.
It is very easy to replicate: type few chars from any command and press tab twice. First tab will complete with the first match but the second one will append the 2nd result instead of replacing the last completion.
Assuming you typed doc<tab><tab>
you would probably see something like:
If it would would work correctly the command line should have only the completion text like here: