Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting doesnt update with custom autosuggest-accept (key binding from auto-suggestion) #2055

Open
jiarui-z opened this issue Aug 4, 2023 · 0 comments

Comments

@jiarui-z
Copy link

jiarui-z commented Aug 4, 2023

Description

I customized the auto-suggestion acception key binding with bindkey ',' autosuggest-accept in my zshrc. When I pressed , to accept the suggestion, the syntax highlighting doesn't update. The relative order of plugins follows what is told on the readme the relative order of loading the modules would be syntax-highlighting, history-substring-search and autosuggestions.

Expected behavior

Syntax highlighting updates correctly
image

Actual behavior

After pressing ,
image
The highlighting only updated if I press another key(space in this case)
image

Steps to Reproduce

  1. add bindkey ',' autosuggest-accept to your zshrc
  2. enable auto-suggestion and syntax-highliting. My plugin list:
zstyle ':prezto:load' pmodule \
  'environment' \
  'terminal' \
  'editor' \
  'history' \
  'directory' \
  'spectrum' \
  'utility' \
  'git' \
  'completion' \
  'syntax-highlighting' \
  'history-substring-search' \
  'autosuggestions' \
  'prompt'

Versions

  • Prezto commit: c9c716e
  • ZSH version: 5.9
  • OS information: osX 13.4.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant