mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-12-08 15:32:31 +01:00
Enabling suggestions should not fetch a suggestion if buffer is empty
This commit is contained in:
parent
7d4a1d9a4a
commit
a2f0ffb122
5 changed files with 77 additions and 7 deletions
|
|
@ -290,7 +290,10 @@ _zsh_autosuggest_disable() {
|
|||
# Enable suggestions
|
||||
_zsh_autosuggest_enable() {
|
||||
unset _ZSH_AUTOSUGGEST_DISABLED
|
||||
_zsh_autosuggest_fetch
|
||||
|
||||
if [ $#BUFFER -gt 0 ]; then
|
||||
_zsh_autosuggest_fetch
|
||||
fi
|
||||
}
|
||||
|
||||
# Toggle suggestions (enable/disable)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue