zsh-users / zsh-autosuggestions

Fish-like autosuggestions for zsh
MIT License
30.95k stars 1.86k forks source link

Autocomplete color not changing back to default after accepting #559

Closed mankinskin closed 3 years ago

mankinskin commented 4 years ago

Describe the bug

When I get a suggestion and accept it via right arrow key, the color remains as the autocomplete style, instead of changing back to default.

To Reproduce

# ~/.zshrc
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#888888, bg=black,bold"
ZSH_AUTOSUGGEST_STRATEGY=(match_prev_cmd completion history)
set ZSH_AUTOSUGGEST_USE_ASYNC

type ".zsh" in home directory (or provoke any autosuggestion) see the autocompletion in gray hit right arrow key see the completed string still in gray

Expected behavior

the completed string should be the default text color

Screenshots

autosuggest

mankinskin commented 4 years ago

A workaround is to also install zsh-syntax-highlighting, as this overrides the colors.