zsh-users / zsh-autosuggestions

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

Accepted selection doesn't change color until TAB is pressed #733

Closed ckt114 closed 1 year ago

ckt114 commented 1 year ago

Describe the bug

When typing a command that has suggestion, the chosen selection doesn't change to accepted color until TAB is pressed. For example, when typing kubectl to get the history and do ALT+F to move forward the accepted selection didn't change color, it stays as the history color until TAB is pressed. Please see screenshots.

To Reproduce

  1. Type a previously used command
  2. Do CTRL+F or ALT+F to move forward
  3. Color doesn't change
  4. Press TAB and color will change.
% zsh -df
% source path/to/zsh-autosuggestions.zsh
% ... # what do you do to reproduce?

Expected behavior

The accepted parts of the command should change color

Screenshots

Typed kube and ALT+F 2 times, color didn't change 1

Pressed TAB then color changed 2

Desktop

Additional context

ckt114 commented 1 year ago

Had to use hex instead of 0-7.