sedwards2009 / extraterm

The swiss army chainsaw of terminal emulators
https://extraterm.org
MIT License
2.52k stars 116 forks source link

Fixes #294: Tab completion repeats the first character (oh-my-zsh) #295

Closed aral closed 3 years ago

aral commented 3 years ago

Fixes #294

To test:

Using oh-my-zsh with the Extraterm setup injected into the session, (e.g., Agnoster theme; although theme is not a factor):

Before PR:

  1. Open a terminal and carry out tab-completion on, say, the letter c
  2. Notice that the c character is repeated.

After PR:

Notice that the c character is not repeated.

sedwards2009 commented 3 years ago

From https://stackoverflow.com/questions/19305291/remnant-characters-when-tab-completing-with-zsh

""" You indicate that a character sequence in the zsh prompt has zero width using the %{ and %} delimiters. """

This is exactly the fix we need!

Thanks.

aral commented 3 years ago

Thanks :)