mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-12-08 15:32:31 +01:00
Lots of little async cleanups
This commit is contained in:
parent
c3425870f1
commit
e3eb286ea2
7 changed files with 160 additions and 102 deletions
|
|
@ -11,8 +11,10 @@ _zsh_autosuggest_start() {
|
|||
_zsh_autosuggest_check_deprecated_config
|
||||
_zsh_autosuggest_bind_widgets
|
||||
|
||||
_zsh_autosuggest_async_recreate_pty
|
||||
add-zsh-hook precmd _zsh_autosuggest_async_recreate_pty
|
||||
if [ -n "${ZSH_AUTOSUGGEST_USE_ASYNC+x}" ]; then
|
||||
_zsh_autosuggest_async_start
|
||||
fi
|
||||
}
|
||||
|
||||
# Start the autosuggestion widgets on the next precmd
|
||||
add-zsh-hook precmd _zsh_autosuggest_start
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue