mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-04-17 11:35:31 +08:00
Merge 2d0806a362
into 1ec43c7291
This commit is contained in:
commit
77912f8cca
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user