diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index 17e0d52..5927bd9 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -379,6 +379,7 @@ _zsh_autosuggest_modify() { # Fetch a new suggestion based on what's currently in the buffer _zsh_autosuggest_fetch() { + [[ $CURSOR -eq $#BUFFER ]] || return 0 if [[ -n "${ZSH_AUTOSUGGEST_USE_ASYNC+x}" ]]; then _zsh_autosuggest_async_request "$BUFFER" else