mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-18 09:51:06 +01:00
Offer suggestion only if cursor is at end of line
https://github.com/zsh-users/zsh-autosuggestions/issues/343
This commit is contained in:
parent
3f4c2acd53
commit
2d0806a362
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue