Aloxaf / fzf-tab

Replace zsh's default completion selection menu with fzf!
MIT License
2.97k stars 90 forks source link

[BUG] Syntax highlighting disappears when completion is cancelled #443

Open musjj opened 1 month ago

musjj commented 1 month ago

Describe the bug

A clear and concise description of what the bug is.

I can make sure:

To Reproduce

  1. Install the fast-syntax-highlighting plugin
  2. Trigger a completion
  3. Press Esc to cancel the completion

Expected behavior

The syntax highlighting does not disappear

Environment:

if [[ -f "$HOME/.zsh/plugins/fzf-tab/fzf-tab.plugin.zsh" ]]; then source "$HOME/.zsh/plugins/fzf-tab/fzf-tab.plugin.zsh" fi

if [[ -f "$HOME/.zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh" ]]; then source "$HOME/.zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh" fi

Aloxaf commented 3 weeks ago

can you make sure compinit has been called before load fzf-tab?