zsh-users / zsh-autosuggestions

Fish-like autosuggestions for zsh
MIT License
30.3k stars 1.85k forks source link

Suggestions are not being cleared after not accepting #746

Closed Allaman closed 1 month ago

Allaman commented 1 year ago

Describe the bug

The auto-suggested text is not distinguishable if not being accepted. For instance, in the following screenshot, I entered cd temp<CR> and afterward cd<CR>. Before hitting CR in the last command, I could see "temp" in a dark gray color. As I didn't accept the suggestion, my expectation would be that the suggestion stays displayed in the same dark gray color on my terminal, which I am quite sure was the case some time ago.

image

Unfortunately, I had a hard time creating a reproducible minimal demo. What I recognized is, that the behavior is correct when I remove either of these lines from my config:

I am also aware of this issue and that issue. I played around with different style configurations and installed zsh 5.9 as well. No success.

The issue also occurs on kitty and alacritty and on my NixOS box. This drives me nuts, and I have a very hard time to tackle this down.

Any help or hint is much appreciated!

For reference – my config:

Desktop