zdharma-continuum / fast-syntax-highlighting

Feature-rich syntax highlighting for ZSH
BSD 3-Clause "New" or "Revised" License
1.06k stars 76 forks source link

[bug]: repeating chars after ssh make it unusable #39

Open vapniks opened 1 year ago

vapniks commented 1 year ago

Describe the bug

If I type ssh as the first word on the zsh command line, followed by a space, then any further letters that I type are repeated. So for example, if I try to type ssh remotehost what I get echoed back is ssh rreemmootteehhoosstt. Strangely, if the first word typed after ssh is a number the chars are not repeated until I type a ., e.g. if I try to type ssh 192.168.1.1 what I get is ssh 192..116688..11..11. The problem is definitely with fsh because I can fix it by disabling the highlighting function like this: unfunction →chroma/-ssh.ch

Steps to reproduce

  1. Start zsh and load fast-syntax-highlighting
  2. Type ssh followed by a space, followed by any letter.

Expected behavior

Letters should not be repeated when typed.

Screenshots and recordings

No response

Operating System & Version

linux-gnu | ubuntu | x86_64 | x86_64 | x86_64 x86_64

Zsh version

5.8.1

Terminal emulator

xterm-kitty, and xterm (I tried both)

If using WSL on Windows, which version of WSL

No response

Additional context

I am using oh-my-zsh with several other plugins, but even after disabling all the other plugins the problem with fsh persists.