mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-12-06 15:20:40 +01:00
Compare commits
1 Commits
0e810e5afa
...
features/b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
767d55eba0 |
@@ -21,5 +21,11 @@ _zsh_autosuggest_start() {
|
||||
# Mark for auto-loading the functions that we use
|
||||
autoload -Uz add-zsh-hook is-at-least
|
||||
|
||||
# Start the autosuggestion widgets on the next precmd
|
||||
add-zsh-hook precmd _zsh_autosuggest_start
|
||||
# If zle is already running, go ahead and start the autosuggestion widgets.
|
||||
# Otherwise, wait until the next precmd.
|
||||
if zle; then
|
||||
_zsh_autosuggest_start
|
||||
(( ! ${+ZSH_AUTOSUGGEST_MANUAL_REBIND} )) && add-zsh-hook precmd _zsh_autosuggest_start
|
||||
else
|
||||
add-zsh-hook precmd _zsh_autosuggest_start
|
||||
fi
|
||||
|
||||
@@ -854,5 +854,11 @@ _zsh_autosuggest_start() {
|
||||
# Mark for auto-loading the functions that we use
|
||||
autoload -Uz add-zsh-hook is-at-least
|
||||
|
||||
# Start the autosuggestion widgets on the next precmd
|
||||
add-zsh-hook precmd _zsh_autosuggest_start
|
||||
# If zle is already running, go ahead and start the autosuggestion widgets.
|
||||
# Otherwise, wait until the next precmd.
|
||||
if zle; then
|
||||
_zsh_autosuggest_start
|
||||
(( ! ${+ZSH_AUTOSUGGEST_MANUAL_REBIND} )) && add-zsh-hook precmd _zsh_autosuggest_start
|
||||
else
|
||||
add-zsh-hook precmd _zsh_autosuggest_start
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user