Skip to content

Commit

Permalink
We need to bind on every precmd to ensure we wrap other wrappers
Browse files Browse the repository at this point in the history
Specifically, highlighting breaks if our widgets are wrapped by z-syn-h
widgets.
  • Loading branch information
ericfreese committed Feb 18, 2017
1 parent 75e8505 commit 4321fc0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/start.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

# Start the autosuggestion widgets
_zsh_autosuggest_start() {
add-zsh-hook -d precmd _zsh_autosuggest_start

_zsh_autosuggest_feature_detect
_zsh_autosuggest_bind_widgets

Expand Down
2 changes: 0 additions & 2 deletions zsh-autosuggestions.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,6 @@ _zsh_autosuggest_async_start() {

# Start the autosuggestion widgets
_zsh_autosuggest_start() {
add-zsh-hook -d precmd _zsh_autosuggest_start

_zsh_autosuggest_feature_detect
_zsh_autosuggest_bind_widgets

Expand Down

0 comments on commit 4321fc0

Please sign in to comment.