This commit is contained in:
Martin Väth 2018-06-30 20:36:10 +00:00 committed by GitHub
commit 77912f8cca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -379,6 +379,7 @@ _zsh_autosuggest_modify() {
# Fetch a new suggestion based on what's currently in the buffer # Fetch a new suggestion based on what's currently in the buffer
_zsh_autosuggest_fetch() { _zsh_autosuggest_fetch() {
[[ $CURSOR -eq $#BUFFER ]] || return 0
if [[ -n "${ZSH_AUTOSUGGEST_USE_ASYNC+x}" ]]; then if [[ -n "${ZSH_AUTOSUGGEST_USE_ASYNC+x}" ]]; then
_zsh_autosuggest_async_request "$BUFFER" _zsh_autosuggest_async_request "$BUFFER"
else else