zsh-autosuggestions: Multiple bugs with iTerm2 3.1.3+ on Mac High Sierra 10.13

I created a screen recording to capture some of the bugs I am seeing when running on High Sierra 10.13. To summarize (in order of occurrence in the video)

  1. When pasting text, the left prompt disappears
  2. Typing a command and backspacing causes extra letter(s) to be added in , and sometimes prevents users from backspacing to beginning of the line. In the video, when I start backspacing curl, it changes to ccurl
  3. Sometimes cannot backspace to beginning of line (there is a space that somehow gets added and cannot be removed)
  4. Commands with autosuggestions sometimes have extra characters randomly added into the command. In the video. curl -X GET is changed to curl -X GGET

These bugs are only occurring in iTerm2. I tested with both 3.1.3 and 3.1.4 and the issues appeared in both. In the standard Mac Terminal.app, the bugs are not present. Additionally, if I disable autosuggestions, the issues disappear in iTerm2.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 3
  • Comments: 21 (1 by maintainers)

Most upvoted comments

This looks like compatibility issue with your zsh theme, configuration and/or plugins. Can you reproduce issues after sourcing zsh-asug with clean env? Like:

zsh -f
source path/to/zsh-autosuggestions.zsh