zsh-users / zsh-syntax-highlighting

Fish shell like syntax highlighting for Zsh.
github.com/zsh-users/zsh-syntax-highlighting
BSD 3-Clause "New" or "Revised" License
19.55k stars 1.32k forks source link

syntax highlighting seems to clash with zsh-autosuggestions #867

Closed EigenDev closed 2 years ago

EigenDev commented 2 years ago

Hello,

This wasn't an issue until maybe two months ago, but I noticed that when typing a command, the entire history of the command will appear white even though I have not pressed the →key. When I comment out the zsh-syntax-highlighting from the plugins in .zshrc, the auto suggestions work as expected where the suggested command remains grey as I continue typing it out. I've attached two images to show what I mean.

Expected behavior (syntax-highlighting turned off): Selection_024

Actual behavior (syntax-highlighting turned on): Selection_023

Any help/suggestions would be greatly appreciated!

LilMonk commented 2 years ago

I'm facing the same issue.

danielshahaf commented 2 years ago

Please update to latest z-sy-h master. (I'm guessing you're both on non-latest z-sy-h but on zsh 5.8.1, in which case you are probably seeing #857.)

EigenDev commented 2 years ago

Thank you! Upgrading solved the issue. Closing now