mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-18 09:51:06 +01:00
Only bind widgets once, on initial sourcing
This commit is contained in:
parent
2dbd261989
commit
3f57198d07
2 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,8 @@
|
||||||
|
|
||||||
# Start the autosuggestion widgets
|
# Start the autosuggestion widgets
|
||||||
_zsh_autosuggest_start() {
|
_zsh_autosuggest_start() {
|
||||||
|
add-zsh-hook -d precmd _zsh_autosuggest_start
|
||||||
|
|
||||||
_zsh_autosuggest_check_deprecated_config
|
_zsh_autosuggest_check_deprecated_config
|
||||||
_zsh_autosuggest_bind_widgets
|
_zsh_autosuggest_bind_widgets
|
||||||
}
|
}
|
||||||
|
|
|
@ -568,6 +568,8 @@ add-zsh-hook precmd _zsh_autosuggest_async_recreate_pty
|
||||||
|
|
||||||
# Start the autosuggestion widgets
|
# Start the autosuggestion widgets
|
||||||
_zsh_autosuggest_start() {
|
_zsh_autosuggest_start() {
|
||||||
|
add-zsh-hook -d precmd _zsh_autosuggest_start
|
||||||
|
|
||||||
_zsh_autosuggest_check_deprecated_config
|
_zsh_autosuggest_check_deprecated_config
|
||||||
_zsh_autosuggest_bind_widgets
|
_zsh_autosuggest_bind_widgets
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue